diff options
author | Mike Hommey <glandium@debian.org> | 2007-08-26 10:38:52 +0200 |
---|---|---|
committer | Mike Hommey <glandium@debian.org> | 2007-08-26 10:38:52 +0200 |
commit | c69572cb9f2467259a73de64c08e141f21f17fa8 (patch) | |
tree | b0ac225bcbeea038aaa7db22f0ebb7786d07a391 /uri.c | |
parent | 58f9d16e3a77d5207d9ccc413b61e2cb45190018 (diff) | |
download | libxml2-c69572cb9f2467259a73de64c08e141f21f17fa8.tar.gz |
Load /tmp/libxml2-2.6.30 intoupstream/2.6.30.dfsg
libxml2/branches/upstream/current.
Diffstat (limited to 'uri.c')
-rw-r--r-- | uri.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -2258,7 +2258,8 @@ xmlBuildRelativeURI (const xmlChar * URI, const xmlChar * base) uptr = (xmlChar *) ref->path; if (*uptr == '/') uptr++; - val = xmlStrdup(uptr); + /* exception characters from xmlSaveUri */ + val = xmlURIEscapeStr(uptr, BAD_CAST "/;&=+$,"); } goto done; } @@ -2322,7 +2323,8 @@ xmlBuildRelativeURI (const xmlChar * URI, const xmlChar * base) if (nbslash == 0) { if (uptr != NULL) - val = xmlStrdup (uptr); + /* exception characters from xmlSaveUri */ + val = xmlURIEscapeStr(uptr, BAD_CAST "/;&=+$,"); goto done; } @@ -2362,6 +2364,12 @@ xmlBuildRelativeURI (const xmlChar * URI, const xmlChar * base) vptr[len - 1] = 0; } + /* escape the freshly-built path */ + vptr = val; + /* exception characters from xmlSaveUri */ + val = xmlURIEscapeStr(vptr, BAD_CAST "/;&=+$,"); + xmlFree(vptr); + done: /* * Free the working variables |