httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@engelschall.com (Ralf S. Engelschall)
Subject Re: [BUG]: "unescape_url don't convert '+' to blank" on Linux (fwd)
Date Wed, 26 Feb 1997 08:06:28 GMT

In article <199702251924.OAA12113@luers.qosina.com> you wrote:

> no ack.

> > --- 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]))

-1

Translating "+" to " " is the job of the CGI script which handles the form
result, I think. Apache shouldn't do this itself. 

Greetings,
                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com

Mime
View raw message