• Thomas B. Rücker's avatar
    Fix issue with only "-" and whitespace in element · 56bbc0d1
    Thomas B. Rücker authored
    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.
    56bbc0d1
Name
Last commit
Last update
..
assets Loading commit data...
Makefile.am Loading commit data...
auth.xsl Loading commit data...
favicon.ico Loading commit data...
icecast.png Loading commit data...
key.png Loading commit data...
server_version.xsl Loading commit data...
status-json.xsl Loading commit data...
status.xsl Loading commit data...
style.css Loading commit data...
tunein.png Loading commit data...
xml2json.xslt Loading commit data...