Re: [xml] xmlURIEscape and user authentication

On Thu, Apr 01, 2004 at 11:58:03AM -0700, Mark_Vakoc peoplesoft com wrote:

xmlURIEscape seems to trample on the user part of a URI.  xmlSaveUri
assumes a http style uri (http://user somewhere com/) and doesn't work
properly for mailto type schemes, but for libxml2 that is probably ok.

  Well each scheme has it own escaping rules which makes generic escaping
quite messy.

However calling the following:

xmlUriEscape(BAD_CAST "http://user somewhere com") results in
"http:user@//".  The attach patch fixes that, but still does

  oops :-) okay, applied !

not properly handle the mailto type scheme.  Again, probalby not a problem
for libxml2 and would be difficult to fix without adding lots of scheme
specific logic.

  yeah. However if short I'm not against adding said logic, especially
for a scheme as common as "mail:" . However libxml2 itself should not
need it for its own processing.


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]