projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d9e866e
)
Removing logo
author
jongfoster
<jongfoster@users.sourceforge.net>
Sun, 24 Mar 2002 16:35:57 +0000
(16:35 +0000)
committer
jongfoster
<jongfoster@users.sourceforge.net>
Sun, 24 Mar 2002 16:35:57 +0000
(16:35 +0000)
filters.c
patch
|
blob
|
history
diff --git
a/filters.c
b/filters.c
index
15775df
..
6140bb0
100644
(file)
--- a/
filters.c
+++ b/
filters.c
@@
-1,4
+1,4
@@
-const char filters_rcs[] = "$Id: filters.c,v 1.5
0 2002/03/24 13:25:43 swa
Exp $";
+const char filters_rcs[] = "$Id: filters.c,v 1.5
1 2002/03/24 15:23:33 jongfoster
Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/filters.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/filters.c,v $
@@
-38,6
+38,9
@@
const char filters_rcs[] = "$Id: filters.c,v 1.50 2002/03/24 13:25:43 swa Exp $"
*
* Revisions :
* $Log: filters.c,v $
*
* Revisions :
* $Log: filters.c,v $
+ * Revision 1.51 2002/03/24 15:23:33 jongfoster
+ * Name changes
+ *
* Revision 1.50 2002/03/24 13:25:43 swa
* name change related issues
*
* Revision 1.50 2002/03/24 13:25:43 swa
* name change related issues
*
@@
-690,15
+693,15
@@
struct http_response *block_url(struct client_state *csp)
#if 1 /* Two alternative strategies, use this one for now: */
/* and handle accordingly: */
#if 1 /* Two alternative strategies, use this one for now: */
/* and handle accordingly: */
- if ((p == NULL) || (0 == strcmpic(p, "
logo
")))
+ if ((p == NULL) || (0 == strcmpic(p, "
pattern
")))
{
{
- rsp->body = bindup(image_
logo_data, image_logo
_length);
+ rsp->body = bindup(image_
pattern_data, image_pattern
_length);
if (rsp->body == NULL)
{
free_http_response(rsp);
return cgi_error_memory();
}
if (rsp->body == NULL)
{
free_http_response(rsp);
return cgi_error_memory();
}
- rsp->content_length = image_
logo
_length;
+ rsp->content_length = image_
pattern
_length;
if (enlist_unique_header(rsp->headers, "Content-Type", BUILTIN_IMAGE_MIMETYPE))
{
if (enlist_unique_header(rsp->headers, "Content-Type", BUILTIN_IMAGE_MIMETYPE))
{
@@
-724,23
+727,6
@@
struct http_response *block_url(struct client_state *csp)
}
}
}
}
- else if (0 == strcmpic(p, "pattern"))
- {
- rsp->body = bindup(image_pattern_data, image_pattern_length);
- if (rsp->body == NULL)
- {
- free_http_response(rsp);
- return cgi_error_memory();
- }
- rsp->content_length = image_pattern_length;
-
- if (enlist_unique_header(rsp->headers, "Content-Type", BUILTIN_IMAGE_MIMETYPE))
- {
- free_http_response(rsp);
- return cgi_error_memory();
- }
- }
-
else
{
rsp->status = strdup("302 Local Redirect from Privoxy");
else
{
rsp->status = strdup("302 Local Redirect from Privoxy");
@@
-760,18
+746,14
@@
struct http_response *block_url(struct client_state *csp)
#else /* Following code is disabled for now */
/* and handle accordingly: */
#else /* Following code is disabled for now */
/* and handle accordingly: */
- if ((p == NULL) || (0 == strcmpic(p, "
logo
")))
+ if ((p == NULL) || (0 == strcmpic(p, "
pattern
")))
{
{
- p = CGI_PREFIX "send-banner?type=
logo
";
+ p = CGI_PREFIX "send-banner?type=
pattern
";
}
else if (0 == strcmpic(p, "blank"))
{
p = CGI_PREFIX "send-banner?type=blank";
}
}
else if (0 == strcmpic(p, "blank"))
{
p = CGI_PREFIX "send-banner?type=blank";
}
- else if (0 == strcmpic(p, "pattern"))
- {
- p = CGI_PREFIX "send-banner?type=pattern";
- }
rsp->status = strdup("302 Local Redirect from Privoxy");
if (rsp->status == NULL)
{
rsp->status = strdup("302 Local Redirect from Privoxy");
if (rsp->status == NULL)
{