Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent output when using % signs #4

Closed
abrist opened this issue Jun 10, 2014 · 2 comments
Closed

Inconsistent output when using % signs #4

abrist opened this issue Jun 10, 2014 · 2 comments

Comments

@abrist
Copy link

abrist commented Jun 10, 2014

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).

@emislivec
Copy link
Contributor

Fixed in 04c80dd.

@abrist
Copy link
Author

abrist commented Sep 23, 2014

Indeed. Issue can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants