From: Fabian Keil Date: Sun, 30 Oct 2011 16:18:12 +0000 (+0000) Subject: Let get_last_url() log failed url_decode() operations again X-Git-Tag: v_3_0_18~61 X-Git-Url: http://www.privoxy.org/gitweb/%22/%40user-manual%40%40helplink%40DOWNGRADE-HTTP-VERSION?a=commitdiff_plain;h=fb7262efc9773f80c6737da5f02efe3bade66873;p=privoxy.git Let get_last_url() log failed url_decode() operations again --- diff --git a/filters.c b/filters.c index f38b91be..865c6d80 100644 --- a/filters.c +++ b/filters.c @@ -1,4 +1,4 @@ -const char filters_rcs[] = "$Id: filters.c,v 1.150 2011/10/30 16:17:21 fabiankeil Exp $"; +const char filters_rcs[] = "$Id: filters.c,v 1.151 2011/10/30 16:17:57 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/filters.c,v $ @@ -1121,7 +1121,11 @@ char *get_last_url(char *subject, const char *redirect_mode) while (token) { char *dtoken = url_decode(token); - if (!dtoken) continue; + if (NULL == dtoken) + { + log_error(LOG_LEVEL_ERROR, "Unable to decode \"%s\".", token); + continue; + } char *h1 = strstr(dtoken, "http://"); char *h2 = strstr(dtoken, "https://"); char *h = (h1 && h2