Re: [Nagios-devel] illegal_macro_output_chars and $SERVICEOUTPUT$

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] illegal_macro_output_chars and $SERVICEOUTPUT$

Post by Guest »

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- --- ../orig/nagios-3.0rc2/common/macros.c 2008-01-15 21:35:52.000000000 +0100
+++ common/macros.c 2008-01-29 19:27:18.000000000 +0100
@@ -194,8 +194,8 @@
if(selected_macro!=NULL){

/* include any cleaning options passed back to us */
- - options&=clean_options;
- -
+ //options&=clean_options;
+ options=(STRIP_ILLEGAL_MACRO_CHARS|ESCAPE_MACRO_CHARS);
/* URL encode the macro if requested - this allocates new memory */
if(options & URL_ENCODE_MACRO_CHARS){
original_macro=selected_macro;

this is not nice, but fix me problem.

have anyone a better/clean resolution?

Thanks,
Matthias
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFHn3HBTG9/zWWjsBsRAprzAJ9X6zWtI0xS5D6j9nnKpMyads/TtwCaA8zA
sbhIiuUO/FrfWK7Exny/GNM=
=yBz0
-----END PGP SIGNATURE-----





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked