projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d8f5040
)
RFC 2616 is obsolete, update a comment in redirect_url()
author
Fabian Keil
<fk@fabiankeil.de>
Thu, 12 Jun 2014 13:08:25 +0000
(13:08 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Thu, 12 Jun 2014 13:08:25 +0000
(13:08 +0000)
filters.c
patch
|
blob
|
history
diff --git
a/filters.c
b/filters.c
index
31f528e
..
df3b3f8
100644
(file)
--- a/
filters.c
+++ b/
filters.c
@@
-1,4
+1,4
@@
-const char filters_rcs[] = "$Id: filters.c,v 1.18
3 2014/06/03 10:29:40
fabiankeil Exp $";
+const char filters_rcs[] = "$Id: filters.c,v 1.18
4 2014/06/03 10:33:17
fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/filters.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/filters.c,v $
@@
-1238,11
+1238,14
@@
struct http_response *redirect_url(struct client_state *csp)
* properly formatted URL and use it for the redirection
* directly.
*
* properly formatted URL and use it for the redirection
* directly.
*
- * According to
RFC 2616 section 14.30 the URL
- * has to be absolute and if the user tries:
- * +redirect{s
hit
/this/will/be/parsed/as/pcrs_command.html}
+ * According to
(the now obsolete) RFC 2616 section 14.30
+ *
the URL
has to be absolute and if the user tries:
+ * +redirect{s
adly
/this/will/be/parsed/as/pcrs_command.html}
* she would get undefined results anyway.
*
* she would get undefined results anyway.
*
+ * RFC 7231 7.1.2 actually allows relative references,
+ * but those start with a leading slash (RFC 3986 4.2) and
+ * thus can't be mistaken for pcrs commands either.
*/
if (*redirection_string == 's')
*/
if (*redirection_string == 's')