httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+gm...@sunstarsys.com>
Subject Re: Problem with APR::Request::encode and UTF8 data
Date Wed, 21 Sep 2005 18:29:16 GMT
"Nikolay Ananiev" <ananiev@thegdb.com> writes:

> Win2000 Advanced server, ActivePerl 5.8.7 (build 813)
> mod_perl 2.0.2-dev, latest apreq2 svn, httpd 2.0.54
> (httpd, apreq2 and mp2 are compiled with VS .NET 2002)

See if this patch helps any:

Index: library/util.c
===================================================================
--- library/util.c	(revision 279108)
+++ library/util.c	(working copy)
@@ -497,11 +497,11 @@
 {
     char *d = dest;
     const unsigned char *s = (const unsigned char *)src;
-    unsigned c;
+    unsigned char c;
 
     for ( ; s < (const unsigned char *)src + slen; ++s) {
         c = *s;
-        if ( apr_isalnum(c) || c == '-' || c == '.' || c == '_' || c == '~' )
+        if ( (c < 0x80 && apr_isalnum(c)) || c == '-' || c == '.' || c == '_'
|| c == '~' )
             *d++ = c;
 
         else if ( c == ' ' )


-- 
Joe Schaefer


Mime
View raw message