projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
52bd067
)
Changed default for "blocked" image from jb logo to checkboard pattern
author
oes
<oes@users.sourceforge.net>
Tue, 12 Mar 2002 01:44:49 +0000
(
01:44
+0000)
committer
oes
<oes@users.sourceforge.net>
Tue, 12 Mar 2002 01:44:49 +0000
(
01:44
+0000)
cgisimple.c
patch
|
blob
|
history
diff --git
a/cgisimple.c
b/cgisimple.c
index
67d2765
..
401065c
100644
(file)
--- a/
cgisimple.c
+++ b/
cgisimple.c
@@
-1,4
+1,4
@@
-const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.1
6 2002/03/07 03:48:3
8 oes Exp $";
+const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.1
7 2002/03/08 16:43:1
8 oes Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/cgisimple.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/cgisimple.c,v $
@@
-36,6
+36,9
@@
const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.16 2002/03/07 03:48:38 oes Ex
*
* Revisions :
* $Log: cgisimple.c,v $
*
* Revisions :
* $Log: cgisimple.c,v $
+ * Revision 1.17 2002/03/08 16:43:18 oes
+ * Added choice beween GIF and PNG built-in images
+ *
* Revision 1.16 2002/03/07 03:48:38 oes
* - Changed built-in images from GIF to PNG
* (with regard to Unisys patent issue)
* Revision 1.16 2002/03/07 03:48:38 oes
* - Changed built-in images from GIF to PNG
* (with regard to Unisys patent issue)
@@
-344,7
+347,7
@@
jb_err cgi_send_banner(struct client_state *csp,
if (imagetype == 'a') /* auto */
{
/* Default to logo */
if (imagetype == 'a') /* auto */
{
/* Default to logo */
- imagetype = '
l
';
+ imagetype = '
p
';
#ifdef FEATURE_IMAGE_BLOCKING
if ((csp->action->flags & ACTION_IMAGE_BLOCKER) != 0)
{
#ifdef FEATURE_IMAGE_BLOCKING
if ((csp->action->flags & ACTION_IMAGE_BLOCKER) != 0)
{
@@
-370,16
+373,16
@@
jb_err cgi_send_banner(struct client_state *csp,
rsp->content_length = image_blank_length;
}
rsp->content_length = image_blank_length;
}
- else if (imagetype == 'p') /* pattern */
- {
- rsp->body = bindup(image_pattern_data, image_pattern_length);
- rsp->content_length = image_pattern_length;
- }
- else /* logo */
+ else if (imagetype == 'l') /* logo */
{
rsp->body = bindup(image_logo_data, image_logo_length);
rsp->content_length = image_logo_length;
}
{
rsp->body = bindup(image_logo_data, image_logo_length);
rsp->content_length = image_logo_length;
}
+ else /* pattern */
+ {
+ rsp->body = bindup(image_pattern_data, image_pattern_length);
+ rsp->content_length = image_pattern_length;
+ }
if (rsp->body == NULL)
{
if (rsp->body == NULL)
{