Skip to content
Snippets Groups Projects
Commit 232a92e4b370 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

workaround misgenerated file: URIs c.f. #437385 daniel

* xmlIO.c: workaround misgenerated file: URIs c.f. #437385
daniel

svn path=/trunk/; revision=3630
parent d15d28a6bce1
Branches
Tags
No related merge requests found
Tue Jun 12 11:37:55 CEST 2007 Daniel Veillard <daniel@veillard.com>
* xmlIO.c: workaround misgenerated file: URIs c.f. #437385
Tue Jun 12 11:22:47 CEST 2007 Daniel Veillard <daniel@veillard.com>
 
* relaxng.c: fixed bug #407436 a crash in a specific case of
......
......@@ -844,9 +844,9 @@
return((void *) fd);
}
if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file://localhost/", 17))
if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file://localhost/", 17)) {
#if defined (_WIN32) || defined (__DJGPP__) && !defined(__CYGWIN__)
path = &filename[17];
#else
path = &filename[16];
#endif
......@@ -848,11 +848,11 @@
#if defined (_WIN32) || defined (__DJGPP__) && !defined(__CYGWIN__)
path = &filename[17];
#else
path = &filename[16];
#endif
else if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file:///", 8)) {
} else if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file:///", 8)) {
#if defined (_WIN32) || defined (__DJGPP__) && !defined(__CYGWIN__)
path = &filename[8];
#else
path = &filename[7];
#endif
......@@ -854,8 +854,15 @@
#if defined (_WIN32) || defined (__DJGPP__) && !defined(__CYGWIN__)
path = &filename[8];
#else
path = &filename[7];
#endif
} else if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file:/", 6)) {
/* lots of generators seems to lazy to read RFC 1738 */
#if defined (_WIN32) || defined (__DJGPP__) && !defined(__CYGWIN__)
path = &filename[6];
#else
path = &filename[5];
#endif
} else
path = filename;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment