X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=cgisimple.c;h=79ec6216da403489352f36e8d3a501b245964019;hp=fd488586970ce0ee9c993edca44067ea1b81dcb1;hb=59587f70b2176457abad3d978404a32205d432a3;hpb=5908e5c4c1a5f4a19602dfa42b7a9af5c2c2dfe2 diff --git a/cgisimple.c b/cgisimple.c index fd488586..79ec6216 100644 --- a/cgisimple.c +++ b/cgisimple.c @@ -1,4 +1,4 @@ -const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.115 2012/03/09 17:55:49 fabiankeil Exp $"; +const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.119 2013/01/25 21:52:02 david__schmidt Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgisimple.c,v $ @@ -6,7 +6,7 @@ const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.115 2012/03/09 17:55:49 fabia * Purpose : Simple CGIs to get information about Privoxy's * status. * - * Copyright : Written by and Copyright (C) 2001-2011 the + * Copyright : Written by and Copyright (C) 2001-2013 the * Privoxy team. http://www.privoxy.org/ * * Based on the Internet Junkbuster originally written @@ -43,9 +43,9 @@ const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.115 2012/03/09 17:55:49 fabia #include #include -#ifdef HAVE_ACCESS +#if defined (HAVE_ACCESS) && defined (HAVE_UNISTD_H) #include -#endif /* def HAVE_ACCESS */ +#endif /* def HAVE_ACCESS && HAVE_UNISTD_H */ #include "project.h" #include "cgi.h" @@ -255,7 +255,7 @@ jb_err cgi_show_request(struct client_state *csp, /* * Repair the damage done to the IOB by get_header() */ - for (p = csp->client_iob->buf; p < csp->client_iob->eod; p++) + for (p = csp->client_iob->buf; p < csp->client_iob->cur; p++) { if (*p == '\0') *p = '\n'; } @@ -1408,6 +1408,9 @@ jb_err cgi_show_url_info(struct client_state *csp, case SOCKS_5: socks_type = "socks5"; break; + case SOCKS_5T: + socks_type = "socks5t"; + break; default: log_error(LOG_LEVEL_FATAL, "Unknown socks type: %d.", fwd->type); } @@ -1647,6 +1650,12 @@ static jb_err show_defines(struct map *exports) if (!err) err = map_conditional(exports, "FEATURE_STATISTICS", 0); #endif /* ndef FEATURE_STATISTICS */ +#ifdef FEATURE_STRPTIME_SANITY_CHECKS + if (!err) err = map_conditional(exports, "FEATURE_STRPTIME_SANITY_CHECKS", 1); +#else /* ifndef FEATURE_STRPTIME_SANITY_CHECKS */ + if (!err) err = map_conditional(exports, "FEATURE_STRPTIME_SANITY_CHECKS", 0); +#endif /* ndef FEATURE_STRPTIME_SANITY_CHECKS */ + #ifdef FEATURE_TOGGLE if (!err) err = map_conditional(exports, "FEATURE_TOGGLE", 1); #else /* ifndef FEATURE_TOGGLE */