projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
52688cf
)
Fixing multiline character string (a GCC-only "feature"), and snprintf (it's _snprint...
author
jongfoster
<jongfoster@users.sourceforge.net>
Tue, 5 Jun 2001 19:59:16 +0000
(19:59 +0000)
committer
jongfoster
<jongfoster@users.sourceforge.net>
Tue, 5 Jun 2001 19:59:16 +0000
(19:59 +0000)
cgi.c
patch
|
blob
|
history
diff --git
a/cgi.c
b/cgi.c
index
f461bb3
..
7d43b4e
100644
(file)
--- a/
cgi.c
+++ b/
cgi.c
@@
-1,4
+1,4
@@
-const char cgi_rcs[] = "$Id: cgi.c,v 1.
3 2001/06/03 19:12:16 oes
Exp $";
+const char cgi_rcs[] = "$Id: cgi.c,v 1.
4 2001/06/04 10:41:52 swa
Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/cgi.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/cgi.c,v $
@@
-36,6
+36,9
@@
const char cgi_rcs[] = "$Id: cgi.c,v 1.3 2001/06/03 19:12:16 oes Exp $";
*
* Revisions :
* $Log: cgi.c,v $
*
* Revisions :
* $Log: cgi.c,v $
+ * Revision 1.4 2001/06/04 10:41:52 swa
+ * show version string of cgi.h and cgi.c
+ *
* Revision 1.3 2001/06/03 19:12:16 oes
* introduced new cgi handling
*
* Revision 1.3 2001/06/03 19:12:16 oes
* introduced new cgi handling
*
@@
-106,6
+109,10
@@
const char cgi_rcs[] = "$Id: cgi.c,v 1.3 2001/06/03 19:12:16 oes Exp $";
#include <ctype.h>
#include <string.h>
#include <ctype.h>
#include <string.h>
+#ifdef _WIN32
+#define snprintf _snprintf
+#endif /* def _WIN32 */
+
#include "project.h"
#include "cgi.h"
#include "list.h"
#include "project.h"
#include "cgi.h"
#include "list.h"
@@
-178,7
+185,7
@@
struct http_response *cgi_dispatch(struct client_state *csp)
argstring = csp->http->path;
}
/* Or it's the host part of HOME_PAGE_URL ? */
argstring = csp->http->path;
}
/* Or it's the host part of HOME_PAGE_URL ? */
- else if ( (0 == strcmpic(csp->http->host,
*&
HOME_PAGE_URL + 7 ))
+ else if ( (0 == strcmpic(csp->http->host, HOME_PAGE_URL + 7 ))
&& (0 == strncmpic(csp->http->path,"/config", 7))
&& ((csp->http->path[7] == '/') || (csp->http->path[7] == '\0')))
{
&& (0 == strncmpic(csp->http->path,"/config", 7))
&& ((csp->http->path[7] == '/') || (csp->http->path[7] == '\0')))
{
@@
-370,7
+377,7
@@
char *fill_template(struct client_state *csp, char *template, struct map *answer
pcrs_job *job, *joblist = NULL;
char buf[BUFSIZ];
char *new, *old = NULL;
pcrs_job *job, *joblist = NULL;
char buf[BUFSIZ];
char *new, *old = NULL;
- int
error,
size;
+ int size;
FILE *fp;
/*
FILE *fp;
/*
@@
-515,8
+522,8
@@
int cgi_default(struct client_state *csp, struct http_response *rsp,
if(parameters)
{
p = dump_map(parameters);
if(parameters)
{
p = dump_map(parameters);
- tmp = strsav(tmp, "<p>What made you think this cgi takes options?\n
-
Anyway, here they are, in case you're interested:</p>\n");
+ tmp = strsav(tmp, "<p>What made you think this cgi takes options?\n
"
+
"
Anyway, here they are, in case you're interested:</p>\n");
tmp = strsav(tmp, p);
exports = map(exports, "cgi-parameters", 1, tmp, 0);
free(p);
tmp = strsav(tmp, p);
exports = map(exports, "cgi-parameters", 1, tmp, 0);
free(p);
@@
-642,9
+649,6
@@
int cgi_show_status(struct client_state *csp, struct http_response *rsp,
struct map *parameters)
{
char *s = NULL;
struct map *parameters)
{
char *s = NULL;
- const struct gateway *g;
- int i;
-
struct map *exports = NULL;
#ifdef SPLIT_PROXY_ARGS
struct map *exports = NULL;
#ifdef SPLIT_PROXY_ARGS