httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aram Mirzadeh <...@luers.qosina.com>
Subject [BUG]: "unescape_url don't convert '+' to blank" on Linux (fwd)
Date Tue, 25 Feb 1997 19:24:46 GMT

no ack.

richter@ecos.de said:
> From nobody@hyperreal.com  Tue Feb 25 14:23:58 1997
> Message-Id: <199702251924.LAA02629@taz.hyperreal.com>
> From: richter@ecos.de
> To: awm@qosina.com
> Date: Tue Feb 25 11:24:10 1997
> Subject: [BUG]: "unescape_url don't convert '+' to blank" on Linux
> 
> Submitter: richter@ecos.de
> Operating system: Linux, version: 2.0.26
> Version of Apache Used: 1.2b7
> Extra Modules used: mod_perl
> URL exhibiting problem: 
> 
> Symptoms:
> --
> unescape_url don't convert the plus sign to blank. This makes trouble when using it to
unescape form contents, which may contain blanks. The following patch to util.c should fix
the problem:
> 
> --- util.c.orig Tue Feb 25 13:17:58 1997
> +++ util.c      Tue Feb 25 15:33:46 1997
> @@ -744,7 +744,8 @@
>      badesc = 0;
>      badpath = 0;
>      for(x=0,y=0;url[y];++x,++y) {
> -       if (url[y] != '%') url[x] = url[y];
> +       if (url[y] == '+') url[x] = ' ';
> +       else if (url[y] != '%') url[x] = url[y];
>         else
>         {
>             if (!isxdigit(url[y+1]) || !isxdigit(url[y+2]))
> 
> --
> 
> Backtrace:
> --
> 
> --
> 


-- 
/*
 * Aram Mirzadeh, MIS Manager, Qosina Corp. http://www.qosina.com/~awm/
 * Apache Development Team, awm@hyperreal.com http://www.hyperreal.com/
 * PGP Key - http://www.qosina.com/~awm/pgpkey.html
 * BE 49 9D F6 2A A7 22 FC  02 E9 1E 3D F7 0C 67 A0
 *
 * I haven't lost my mind -- it's backed up on tape somewhere.
 */

Mime
View raw message