Re: [xml] xmlBuildURI/xmlParseURIReference broken in libxml2-2.4.5



On Mon, Oct 01, 2001 at 10:13:09PM +0200, Mathias Hasselmann wrote:
Hi Daniel,


      Whilest trying to use libxslt to process XML docbooks I've
realized that xmlBuildURI/xmlParseURIReference is broken in libxml2-2.4.5.
Verify it by calling testURI:

      $ echo extern.xml | ./testURI -base $PWD/any.xml

Instead of printing $PWD/extern.xml an error message is printed.

      The problem was easy to locate: xmlParseURIReference first tries
to parse the string passed as absolute ref. When this failes
xmlParseURIReference falls back to the relative uri parser.

      Unfortunatly xmlParseAbsoluteURI destroys the content of the str
argument when it realizes that the string passed doesn't start with a
scheme token.

      The patch attached should fix the problem.

  Got it, you're right. The analysis and the patch are good.
Applied and commited !

   Thanks a lot !

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard redhat com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/




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