You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some output that is killing the JSON when it has % signs, which seemed odd to me that percent signs alone would kill the JSON, so I decided to test it out and the output I'm getting is wildly inconsistent (but interesting). In the examples below, I see the output correctly in the HTML page (cgi-bin/extinfo.cgi). The first one is the example of when it works correctly.
Input:
Group Share% Use
JSON Output:
"Group Share% Use"
Input:
Group Share% Use% Share
JSON Output:
"Group Share% Use�����hare"
Input:
Group Share% Use% hare
JSON Output:
"Group Share% Use 0x0.000300000003p-1022re"
Input:
Group 90%
JSON Output:
""
Input:
Testing % sign
JSON Output:
"Testing `֞ign"
Any ideas? I'm using commit 6081644, but I had this problems with % signs when I was using 4.0.4 and 4.0.7 (the release from last week).
The text was updated successfully, but these errors were encountered:
Imported from the forums (user: jssingh): http://support.nagios.com/forum/viewtopic.php?f=34&t=27592
Text of issue below:
I have some output that is killing the JSON when it has % signs, which seemed odd to me that percent signs alone would kill the JSON, so I decided to test it out and the output I'm getting is wildly inconsistent (but interesting). In the examples below, I see the output correctly in the HTML page (cgi-bin/extinfo.cgi). The first one is the example of when it works correctly.
Input:
Group Share% Use
JSON Output:
"Group Share% Use"
Input:
Group Share% Use% Share
JSON Output:
"Group Share% Use�����hare"
Input:
Group Share% Use% hare
JSON Output:
"Group Share% Use 0x0.000300000003p-1022re"
Input:
Group 90%
JSON Output:
""
Input:
Testing % sign
JSON Output:
"Testing `֞ign"
Any ideas? I'm using commit 6081644, but I had this problems with % signs when I was using 4.0.4 and 4.0.7 (the release from last week).
The text was updated successfully, but these errors were encountered: