1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-17 18:21:05 +03:00

fixing bug #78662 i.e. add proper escaping of URI when saving HTML files.

* HTMLtree.c uri.c: fixing bug #78662 i.e. add proper
  escaping of URI when saving HTML files.
* result/HTML/*: this impacted some tests
Daniel
This commit is contained in:
Daniel Veillard
2002-04-14 22:00:22 +00:00
parent 9b731d709e
commit eb475a37df
5 changed files with 91 additions and 54 deletions

2
uri.c
View File

@ -898,7 +898,7 @@ xmlURIEscapeStr(const xmlChar *str, const xmlChar *list) {
ch = *in;
if ( (!IS_UNRESERVED(ch)) && (!xmlStrchr(list, ch)) ) {
if ((ch != '@') && (!IS_UNRESERVED(ch)) && (!xmlStrchr(list, ch))) {
unsigned char val;
ret[out++] = '%';
val = ch >> 4;