You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rp...@apache.org on 2007/12/25 10:35:07 UTC
svn commit: r606776 - /httpd/httpd/trunk/server/util.c
Author: rpluem
Date: Tue Dec 25 01:35:05 2007
New Revision: 606776
URL: http://svn.apache.org/viewvc?rev=606776&view=rev
Log:
* Revert to old behaviour: Even if we detect a bad character: Formally decode
string correctly and do not mess up the string. Let the caller decide what
it wants to do with the result according to our return code.
Modified:
httpd/httpd/trunk/server/util.c
Modified: httpd/httpd/trunk/server/util.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util.c?rev=606776&r1=606775&r2=606776&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util.c (original)
+++ httpd/httpd/trunk/server/util.c Tue Dec 25 01:35:05 2007
@@ -1578,6 +1578,8 @@
if ((decoded == '\0')
|| (forbid && ap_strchr_c(forbid, decoded))) {
badpath = 1;
+ *x = decoded;
+ y += 2;
}
else if (reserved && ap_strchr_c(reserved, decoded)) {
*x++ = *y++;