On 5/10/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> Eh... seems that we do still have some (compat) problems there...
> 
> I do not doubt that the current implementation in urlencode.c
> is OK, but we do have many existing installations running on the
> AOLserver and a couple of new ones running with NaviServer now.
> 
> There are subtle differences in way the urldecoder works.
> 
> The naviserver one will not expand "a+b" into "a b" if walking
> over the path part. This seems to be correct. But the AOLserver
> urlencoder encodes the " " in both url path part *and* the query
> part with "+". Therefore we now have a problem when operating between
> the Naviserver and Aolserver instances.
> 
> We are now stucked.
> 
> Question: is there an easy way to #ifdef parts of the code so
> the encoding/decoding machinery becomes compatible to the aolserver one?
> I will need those compat switches until we get all our customers
> (and they all their instances) updated. This can take some considerable
> time, though, perhaps a year or so.
> 
> I have been walking over the sources and there seems to be quite
> a few changes in this respect in various parts of the code.
> In order to save some (electronic archeology) time I thought I'd rather
> ask here. Stephen, do you have some idea how I can achieve this?


You'll have a syncronization problem: you'll have to throw the switch
on all servers at the same time.

Another alternative might be to patch the AOLserver instances to
always encode spaces as %20, which is always valid.  Then you only
need to ensure that you don't install naviserver on a network with an
unpatched AOLserver.

Oh, I guess you'd still have to patch naviserver to also encode using
%20, but at least that's a valid encoding.

Life's a beach   :-)

Reply via email to