X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=filters.c;h=df89372a27c482937fdf8398e938540cfb869b23;hb=cc8f8ec5cdf5ac6cc70f088da59f5c282aff941a;hp=3c14ac8fc948db06618f49c6bcd8feebdf778f86;hpb=36acaceaae9b0e88caf892ffd2751e53108ebff5;p=privoxy.git diff --git a/filters.c b/filters.c index 3c14ac8f..df89372a 100644 --- a/filters.c +++ b/filters.c @@ -1,4 +1,4 @@ -const char filters_rcs[] = "$Id: filters.c,v 1.157 2011/11/06 11:48:23 fabiankeil Exp $"; +const char filters_rcs[] = "$Id: filters.c,v 1.159 2011/11/06 11:52:36 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/filters.c,v $ @@ -1171,11 +1171,12 @@ char *get_last_url(char *subject, const char *redirect_mode) } subject = url_segment; } - - /* Else, just look for a URL inside this one, without decoding anything. */ - - log_error(LOG_LEVEL_REDIRECTS, - "Checking \"%s\" for unencoded redirects.", subject); + else + { + /* Look for a URL inside this one, without decoding anything. */ + log_error(LOG_LEVEL_REDIRECTS, + "Checking \"%s\" for unencoded redirects.", subject); + } /* * Find the last URL encoded in the request @@ -1319,6 +1320,7 @@ struct http_response *redirect_url(struct client_state *csp) return cgi_error_memory(); } new_url = encoded_url; + assert(FALSE == url_requires_percent_encoding(new_url)); } if (0 == strcmpic(new_url, csp->http->url))