1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-01-19 10:03:34 +03:00

fix for xmlUriEscape on "http://user@somewhere.com" from Mark Vadok.

* uri.c: fix for xmlUriEscape on "http://user@somewhere.com"
  from Mark Vadok.
Daniel
This commit is contained in:
Daniel Veillard 2004-04-01 20:09:22 +00:00
parent 1f093e0c96
commit 0a19458027
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Thu Apr 1 22:07:52 CEST 2004 Daniel Veillard <daniel@veillard.com>
* uri.c: fix for xmlUriEscape on "http://user@somewhere.com"
from Mark Vadok.
2004-04-01 Johan Dahlin <johan@gnome.org>
* python/.cvsignore: Add generated files, to make cvs silent.

4
uri.c
View File

@ -980,6 +980,7 @@ xmlURIEscape(const xmlChar * str)
if (uri->user) {
segment = xmlURIEscapeStr(BAD_CAST uri->user, BAD_CAST ";:&=+$,");
NULLCHK(segment)
ret = xmlStrcat(ret,BAD_CAST "//");
ret = xmlStrcat(ret, segment);
ret = xmlStrcat(ret, BAD_CAST "@");
xmlFree(segment);
@ -988,7 +989,8 @@ xmlURIEscape(const xmlChar * str)
if (uri->server) {
segment = xmlURIEscapeStr(BAD_CAST uri->server, BAD_CAST "/?;:@");
NULLCHK(segment)
ret = xmlStrcat(ret, BAD_CAST "//");
if (uri->user == NULL)
ret = xmlStrcat(ret, BAD_CAST "//");
ret = xmlStrcat(ret, segment);
xmlFree(segment);
}