projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7915c43
)
Let get_last_url() log failed url_decode() operations again
author
Fabian Keil
<fk@fabiankeil.de>
Sun, 30 Oct 2011 16:18:12 +0000
(16:18 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Sun, 30 Oct 2011 16:18:12 +0000
(16:18 +0000)
filters.c
patch
|
blob
|
history
diff --git
a/filters.c
b/filters.c
index
f38b91b
..
865c6d8
100644
(file)
--- a/
filters.c
+++ b/
filters.c
@@
-1,4
+1,4
@@
-const char filters_rcs[] = "$Id: filters.c,v 1.15
0 2011/10/30 16:17:21
fabiankeil Exp $";
+const char filters_rcs[] = "$Id: filters.c,v 1.15
1 2011/10/30 16:17:57
fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/filters.c,v $
/*********************************************************************
*
* 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);
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
char *h1 = strstr(dtoken, "http://");
char *h2 = strstr(dtoken, "https://");
char *h = (h1 && h2