]> git.pld-linux.org Git - packages/nagios.git/blobdiff - nagios-cgi-http_charset.patch
- fix html syntax
[packages/nagios.git] / nagios-cgi-http_charset.patch
index 3d5d0c70dc7a31be641adee259e56c3fe5997be9..cf1b09a7b070b2a02e7abd282d277ca82d12f5ee 100644 (file)
@@ -1,52 +1,3 @@
---- nagios-3.0.3/base/config.c 2008-04-13 21:34:27.000000000 +0300
-+++ nagios-3.0.3-cgi/base/config.c     2008-10-11 12:34:44.464656939 +0300
-@@ -60,6 +60,7 @@
- extern char     *illegal_object_chars;
- extern char     *illegal_output_chars;
-+extern char     *http_charset;
- extern int      use_regexp_matches;
- extern int      use_true_regexp_matching;
-@@ -1211,6 +1212,8 @@
-               else if(!strcmp(variable,"illegal_macro_output_chars"))
-                       illegal_output_chars=(char *)strdup(value);
-+              else if(!strcmp(variable,"http_charset"))
-+                      http_charset=(char *)strdup(value);
-               else if(!strcmp(variable,"broker_module")){
-                       modptr=strtok(value," \n");
---- nagios-3.0.3/base/nagios.c 2008-06-25 21:16:30.000000000 +0300
-+++ nagios-3.0.3-cgi/base/nagios.c     2008-10-11 12:34:44.464656939 +0300
-@@ -82,6 +82,7 @@
- char            *illegal_object_chars=NULL;
- char            *illegal_output_chars=NULL;
-+char            *http_charset=NULL;
- int             use_regexp_matches=FALSE;
- int             use_true_regexp_matching=FALSE;
---- nagios-3.0.3/base/utils.c  2008-06-23 23:47:41.000000000 +0300
-+++ nagios-3.0.3-cgi/base/utils.c      2008-10-11 12:34:44.468657170 +0300
-@@ -87,6 +87,7 @@
- extern char     *illegal_object_chars;
- extern char     *illegal_output_chars;
-+extern char     *http_charset;
- extern int      use_regexp_matches;
- extern int      use_true_regexp_matching;
-@@ -4348,6 +4349,9 @@
-       my_free(illegal_object_chars);
-       my_free(illegal_output_chars);
-+      /* free http charset variable */
-+      my_free(http_charset);
-+
-       /* free nagios user and group */
-       my_free(nagios_user);
-       my_free(nagios_group);
 --- nagios-3.0.3/cgi/avail.c   2008-06-23 23:47:42.000000000 +0300
 +++ nagios-3.0.3-cgi/cgi/avail.c       2008-10-11 12:34:44.496658785 +0300
 @@ -37,6 +37,8 @@
  
                if(embedded==TRUE)
                        return;
---- nagios-3.0.3/cgi/history.c 2008-06-23 23:47:44.000000000 +0300
-+++ nagios-3.0.3-cgi/cgi/history.c     2008-10-11 12:34:44.480657862 +0300
-@@ -315,7 +315,7 @@
+--- nagios-3.0.3-cgi/cgi/history.c     2008-10-11 12:34:44.480657862 +0300
++++ nagios-3.0.3/cgi/history.c 2008-10-11 12:38:12.164637148 +0300
+@@ -57,6 +57,8 @@
+ extern char url_images_path[MAX_FILENAME_LENGTH];
+ extern char url_stylesheets_path[MAX_FILENAME_LENGTH];
++extern char *http_charset;
++
+ extern int log_rotation_method;
+ extern int enable_splunk_integration;
+@@ -315,7 +317,7 @@
        get_time_string(&expire_time,date_time,sizeof(date_time),HTTP_DATE_TIME);
        printf("Expires: %s\r\n",date_time);
  
  
                if(embedded==TRUE)
                        return;
---- nagios-3.0.3/common/macros.c       2008-06-23 23:47:47.000000000 +0300
-+++ nagios-3.0.3-cgi/common/macros.c   2008-10-11 12:34:44.468657170 +0300
-@@ -40,6 +40,7 @@
- #endif
- extern char     *illegal_output_chars;
-+extern char     *http_charset;
- extern contact                *contact_list;
- extern contactgroup   *contactgroup_list;
 --- nagios-3.0.3/include/cgiutils.h.in 2007-11-11 01:34:26.000000000 +0200
 +++ nagios-3.0.3-cgi/include/cgiutils.h.in     2008-10-11 12:34:44.468657170 +0300
 @@ -422,6 +422,9 @@
This page took 0.085315 seconds and 4 git commands to generate.