Commit 0a194580 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

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
parent 1f093e0c
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.
......
......@@ -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);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment