applied patch from Mikhail Zabaluev fixing the conditions of unescaping

* xmlIO.c: applied patch from Mikhail Zabaluev fixing the conditions
  of unescaping from URL to filepath, should fix #344588.
Daniel
diff --git a/ChangeLog b/ChangeLog
index bb93bd0..74265c9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Oct 11 11:14:51 CEST 2006 Daniel Veillard <daniel@veillard.com>
+
+	* xmlIO.c: applied patch from Mikhail Zabaluev fixing the conditions
+	  of unescaping from URL to filepath, should fix #344588.
+
 Wed Oct 11 10:24:58 CEST 2006 Daniel Veillard <daniel@veillard.com>
 
 	* configure.in xstc/Makefile.am: applied patch from Peter Breitenlohner
diff --git a/xmlIO.c b/xmlIO.c
index 25f3bb1..fe50a4e 100644
--- a/xmlIO.c
+++ b/xmlIO.c
@@ -2463,7 +2463,8 @@
 	/*
 	 * try to limit the damages of the URI unescaping code.
 	 */
-	if (puri->scheme != NULL)
+	if ((puri->scheme == NULL) ||
+	    (xmlStrEqual(BAD_CAST puri->scheme, BAD_CAST "file")))
 	    unescaped = xmlURIUnescapeString(URI, 0, NULL);
 	xmlFreeURI(puri);
     }