Dear All,
I've found out that CGIs in nagios 3.2.2 (e.g. in extinfo.cgi, in long plugin output) converts successfully \n (written as two characters) to <BR>, while in nagios 4.0.20130912, the conversion is broken.
One reason of the problem is: 'n' in the source code of cgiutils.c in 3.2.2 has been replaced with '\n' in 4.0.20130912 what is obviously not the same.
Also two other related corrections were needed (as new functionality has been added and was affected too).
The fix is in attachment. I hope it will help someone.
Best regards,
Marek Kaminski [ marek.kaminski.1112 (at) gmail.com ]
[patch] fix for conversion of \n to <BR> (in CGIs)
-
marek.kaminski.1112
- Posts: 3
- Joined: Tue Oct 21, 2014 5:17 am
[patch] fix for conversion of \n to <BR> (in CGIs)
- Attachments
-
cgiutils.c.nagios-4.0.20130912.patch.txt- (1.3 KiB) Downloaded 399 times
Re: [patch] fix for conversion of \n to <BR> (in CGIs)
I'll definitely take a look at this and see if the developers can do anything with it. Thanks for the patch!
Former Nagios employee
-
marek.kaminski.1112
- Posts: 3
- Joined: Tue Oct 21, 2014 5:17 am
Re: [patch] fix for conversion of \n to <BR> (in CGIs)
You're welcometmcdonald wrote:I'll definitely take a look at this and see if the developers can do anything with it. Thanks for the patch!
So thanks for looking what developers can do with it.
Best regards,
Marek Kaminski [ marek.kaminski.1112 (at) gmail.com ]
Re: [patch] fix for conversion of \n to <BR> (in CGIs)
I'll leave the topic open for now in case the dev needs to contact you for any reason.
Former Nagios employee