[vlc-devel] [PATCH 0/7] luahttp improvements

Rob Jonson rob at hobbyistsoftware.com
Tue Sep 27 11:45:26 CEST 2011

set of patches to fix uri handling (as discussed in irc)
and to improve escaping of output for xml and json
json output is now generated with dkjson

Rob Jonson (7):
  uri should be made from path without special xml chars     currently,
    html entities are being inserted in the uri
  Remove stripslashes for input mrl.     It's wrong and was only needed
    for the old internal web client
  use make_uri on mrl inputs
  Move character escaping from the model contents, to the output
    helpers.     This is more reliable for ensuring everythign is
    escaped.     This allows different escaping for xml and json
  add dkjson (will be used to generate correct,escaped json output)    
    Copyright (C) 2010, 2011 David Heiko Kolf - MIT licenced    
  use dkjson to generate properly escaped json
  clean up json output by removing unnecessary array indicators

 share/Makefile.am                       |    2 +
 share/lua/http/requests/browse.json     |    5 +-
 share/lua/http/requests/browse.xml      |    6 +-
 share/lua/http/requests/playlist.json   |    4 +-
 share/lua/http/requests/playlist.xml    |    4 +-
 share/lua/http/requests/status.json     |    4 +-
 share/lua/http/requests/status.xml      |    8 +-
 share/lua/intf/modules/httprequests.lua |   87 ++--
 share/lua/modules/dkjson.lua            |  806 +++++++++++++++++++++++++++++++
 9 files changed, 855 insertions(+), 71 deletions(-)
 create mode 100644 share/lua/modules/dkjson.lua


More information about the vlc-devel mailing list