X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=cgi.c;h=803d98a93d96cd13ae72e43651cb91bd3bff5ff9;hb=276f36f06463858f9c04ca62c2d7de8a07edcd3d;hp=77ed1dba05e3de367598d4aafbcb1fd934260dc5;hpb=2db3511d3385075934f3ea884c07e704b95d406d;p=privoxy.git diff --git a/cgi.c b/cgi.c index 77ed1dba..803d98a9 100644 --- a/cgi.c +++ b/cgi.c @@ -1,4 +1,4 @@ -const char cgi_rcs[] = "$Id: cgi.c,v 1.70.2.3 2002/11/28 18:14:32 oes Exp $"; +const char cgi_rcs[] = "$Id: cgi.c,v 1.70.2.4 2003/03/07 03:41:03 david__schmidt Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/Attic/cgi.c,v $ @@ -38,6 +38,9 @@ const char cgi_rcs[] = "$Id: cgi.c,v 1.70.2.3 2002/11/28 18:14:32 oes Exp $"; * * Revisions : * $Log: cgi.c,v $ + * Revision 1.70.2.4 2003/03/07 03:41:03 david__schmidt + * Wrapping all *_r functions (the non-_r versions of them) with mutex semaphores for OSX. Hopefully this will take care of all of those pesky crash reports. + * * Revision 1.70.2.3 2002/11/28 18:14:32 oes * Disable access to critical CGIs via untrusted referrers. * This prevents users from being tricked by malicious websites @@ -434,7 +437,7 @@ const char cgi_rcs[] = "$Id: cgi.c,v 1.70.2.3 2002/11/28 18:14:32 oes Exp $"; #include "cgiedit.h" #endif /* def FEATURE_CGI_EDIT_ACTIONS */ #include "loadcfg.h" -/* loadcfg.h is for g_bToggleIJB only */ +/* loadcfg.h is for global_toggle_state only */ #ifdef FEATURE_PTHREAD #include #include "jcc.h" @@ -2043,7 +2046,7 @@ struct map *default_exports(const struct client_state *csp, const char *caller) if (!err) err = map(exports, "user-manual", 1, csp->config->usermanual ,1); if (!err) err = map(exports, "actions-help-prefix", 1, ACTIONS_HELP_PREFIX ,1); #ifdef FEATURE_TOGGLE - if (!err) err = map_conditional(exports, "enabled-display", g_bToggleIJB); + if (!err) err = map_conditional(exports, "enabled-display", global_toggle_state); #endif snprintf(buf, 20, "%d", csp->config->hport);