3 Jul 2007 13:17
Re: unnecessary unescaping
2007/7/2, mikhail.zabaluev@... <mikhail.zabaluev@...>: > >> Why is the pctr parameter being unescaped? > > > >All the unreserved chars in URIs are unescaped. The reasoning is to > >make it more straightforward to compare the URIs. Perhaps it would be > >more appropriate to leave everything but scheme, host and port > >unescaped. > > It's OK for "!" (it shouldn't have been escaped in the first place), but somehow " <at> " in the parameter became unescaped too, which is wrong because it is a reserved URI character. Uh-oh. You are right, ' <at> ' should be kept escaped. > >>Can I turn this off? > > >Only by modifying the source code, see url_d() in url/url.c. > > BTW, from what I could understand out of the code ;) the hostname part of SIP/SIPS URIs seems to be "canonized" with escaping as well, but in reality it should only be validated to have a FQDN/IPv4/IPv6, everything else makes the URI invalid. Hm? Hostname should not have any escaped characters. -- -- Pekka.Pessi mail at nokia.com ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
RSS Feed