aboutsummaryrefslogtreecommitdiffstats
path: root/uri.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-04-14 22:00:22 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-04-14 22:00:22 +0000
commiteb475a37df2e37a2a9675eeb84db6de3222649cc (patch)
tree7cd5dcb86bb56689f37c17b65d985a62ffdffdd2 /uri.c
parent9b731d709ee99b59b815d51ad80ebba409f0f20d (diff)
downloadandroid_external_libxml2-eb475a37df2e37a2a9675eeb84db6de3222649cc.tar.gz
android_external_libxml2-eb475a37df2e37a2a9675eeb84db6de3222649cc.tar.bz2
android_external_libxml2-eb475a37df2e37a2a9675eeb84db6de3222649cc.zip
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
Diffstat (limited to 'uri.c')
-rw-r--r--uri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uri.c b/uri.c
index 6e43fc9c..27a6991b 100644
--- a/uri.c
+++ b/uri.c
@@ -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;