From ddf3f17189c9c6a316cea0b614e84110cb6ece7c Mon Sep 17 00:00:00 2001 From: "Thomas B. \"dm8tbr\" Ruecker" Date: Sun, 9 Mar 2014 12:26:15 +0000 Subject: [PATCH] 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 --- web/xml2json.xslt | 103 ++++++++++++++++++++++++++++++++-------------- 1 file changed, 72 insertions(+), 31 deletions(-) diff --git a/web/xml2json.xslt b/web/xml2json.xslt index 66808846..479b1ca8 100644 --- a/web/xml2json.xslt +++ b/web/xml2json.xslt @@ -27,7 +27,10 @@ - + + false + + 0123456789 @@ -130,45 +133,83 @@ true false - + - { - - - - : - - - null - + + + + + [ + + , + + + null + + + + + + + ] + + + + + + { + + + + + + :[ + + , + + + null + + + + + + + ] + , + + } + + + - + { + + + + : + + + + null + + + + + + + , + } - - , - } - - - [ - - - null - - - - - - , - ] - - - + + +