Author: joes
Date: Mon Apr 11 14:24:48 2005
New Revision: 160954

URL: http://svn.apache.org/viewcvs?view=rev&rev=160954
Log:
Follow rfc 3986 # 2.3 and leave unreserved chars [-.+~] unencoded.

Modified:
    httpd/apreq/branches/multi-env-unstable/library/util.c

Modified: httpd/apreq/branches/multi-env-unstable/library/util.c
URL: 
http://svn.apache.org/viewcvs/httpd/apreq/branches/multi-env-unstable/library/util.c?view=diff&r1=160953&r2=160954
==============================================================================
--- httpd/apreq/branches/multi-env-unstable/library/util.c (original)
+++ httpd/apreq/branches/multi-env-unstable/library/util.c Mon Apr 11 14:24:48 
2005
@@ -648,7 +648,7 @@
 
     for ( ; s < (const unsigned char *)src + slen; ++s) {
         c = *s;
-        if ( apr_isalnum(c) )
+        if ( apr_isalnum(c) || c == '-' || c == '.' || c == '_' || c == '~' )
             *d++ = c;
 
         else if ( c == ' ' )


Reply via email to