From: <est...@us...> - 2013-02-16 17:42:01
|
Revision: 2607 http://nagios.svn.sourceforge.net/nagios/?rev=2607&view=rev Author: estanley375 Date: 2013-02-16 17:41:54 +0000 (Sat, 16 Feb 2013) Log Message: ----------- Fixed bug #369: status.cgi crashes with segfault when there are german ulauts (?\195?\164?\195?\182?\195?\188?\195?\159) in the hostname or the servicename Modified Paths: -------------- nagioscore/branches/nagios-3-4-x/Changelog nagioscore/branches/nagios-3-4-x/cgi/cgiutils.c Modified: nagioscore/branches/nagios-3-4-x/Changelog =================================================================== --- nagioscore/branches/nagios-3-4-x/Changelog 2013-02-15 12:09:59 UTC (rev 2606) +++ nagioscore/branches/nagios-3-4-x/Changelog 2013-02-16 17:41:54 UTC (rev 2607) @@ -4,6 +4,7 @@ 3.4.5 - xx/xx/xxxx ------------------ +* Fixed bug #369: status.cgi crashes with segfault when there are german ulauts (äöüß) in the hostname or the servicename * Fixed bug #418: Scheduled Downtime Notifications Resent On Nagios Restart/reload (Eric Stanley) 3.4.4 - 01/12/2013 Modified: nagioscore/branches/nagios-3-4-x/cgi/cgiutils.c =================================================================== --- nagioscore/branches/nagios-3-4-x/cgi/cgiutils.c 2013-02-15 12:09:59 UTC (rev 2606) +++ nagioscore/branches/nagios-3-4-x/cgi/cgiutils.c 2013-02-16 17:41:54 UTC (rev 2607) @@ -944,7 +944,7 @@ else { str[y] = '\x0'; if((int)strlen(str) < (output_len - 3)) { - sprintf(temp_expansion, "%%%02X", (unsigned int)input[x]); + sprintf(temp_expansion, "%%%02X", (unsigned char)input[x]); strcat(str, temp_expansion); y += 3; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |