X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=cgisimple.c;h=866ac263be91258582eb9737c6e751c91fb0c895;hb=c61512bd7a3ea2d95776add2f63de26ff34cbade;hp=fd47c6d01475e2250f7d62699d0857381d500bd6;hpb=5d01d3aa49c20833f33256d21a90e400cd69023f;p=privoxy.git diff --git a/cgisimple.c b/cgisimple.c index fd47c6d0..866ac263 100644 --- a/cgisimple.c +++ b/cgisimple.c @@ -542,6 +542,14 @@ jb_err cgi_send_banner(struct client_state *csp, { char imagetype = lookup(parameters, "type")[0]; + if (imagetype != 'a' && imagetype != 'b' && + imagetype != 'p' && imagetype != 't') + { + log_error(LOG_LEVEL_ERROR, "Overruling invalid image type '%c'.", + imagetype); + imagetype = 'p'; + } + /* * If type is auto, then determine the right thing * to do from the set-image-blocker action