1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-16 06:15:24 +00:00
Commit Graph

5 Commits

Author SHA1 Message Date
Thomas B. Ruecker
56bbc0d12c Fix issue with only "-" and whitespace in element
Fixes: #2198

If there is a single "-" or it is only accompanied by whitespace, then
it wouldn't get escaped as it was detected as as a number. This would
produce invalid JSON.
This makes the numbers part ignore such and thus ensures it gets escaped
as text.

There might be other corner cases related to number parsing, this should be investigated.
2015-05-25 12:56:45 +00:00
Thomas B. Ruecker
0b1ac3e9d5 Essential part of upstream pull req No. 20
https://github.com/doekman/xml2json-xslt/pull/20

 Some numeric values would not get formatted to valid JSON. This
 incorporates the suggestions from issue #15.

Also fixed whitespace of original patch.
Additional fix for related issue will follow.
2015-05-25 12:56:45 +00:00
Thomas B. "dm8tbr" Ruecker
08a6345b22 Set content-type to official "application/json"
svn path=/icecast/trunk/icecast/; revision=19112
2014-03-09 13:02:35 +00:00
Thomas B. "dm8tbr" Ruecker
ddf3f17189 Silence direct calls, add partial array support.
- The XSLT will now return empty if called directly.
  This is a security measure to prevent unintended data leakage.
- Adding partial array support to print sources in an array. 
  Code lifted from: 
  https://code.google.com/p/xml2json-xslt/issues/detail?id=3

svn path=/icecast/trunk/icecast/; revision=19109
2014-03-09 12:26:15 +00:00
Thomas B. "dm8tbr" Ruecker
71fb336792 Adding xml2json XSLT, svn r31 upstream trunk.
https://code.google.com/p/xml2json-xslt/

svn path=/icecast/trunk/icecast/; revision=19108
2014-03-09 12:19:35 +00:00