On Saturday 28 January 2006 22:32, Christian Parpart wrote:
> Hi all,
>
> I'm having a problem, mod_transform's GET argument parser is using
> ap_unescape_url() to decode the unescaped value of an GET query argument,
> wich works so far, however, firefox keeps adding '+' chars instead of %20
> to any kind of input/textarea/... form elements, though, not being able to
> decode the values correctly.
>
> Is this wanted? If so, what can I do to prevent this?

This is an issue that's been periodically bugging me.  But I guess by the time
I got karma with Apache I'd grown used to working around it.

Looking at my code for argument parsing, it always involves something like
   for (p = str; *p; ++p)
      if (*p == '+')
         *p = ' ' ;
   ap_unescape_url(str) ;

Surely that little snippet should live in the API?  Though, alas, not under
ap_unescape_url 'cos of back-compatibility.  Maybe a two-args version
with flags to determine behaviour?

-- 
Nick Kew

Reply via email to