diff options
author | Igor Zlatkovic <igor@src.gnome.org> | 2003-02-19 14:49:48 +0000 |
---|---|---|
committer | Igor Zlatkovic <igor@src.gnome.org> | 2003-02-19 14:49:48 +0000 |
commit | 18fb27808d464a220dabd74e1cac31416fcfa162 (patch) | |
tree | 5cc2e82292514ea290a14d277ac791882679febd /SAX.c | |
parent | 2e9b165f9e0d15e6c1bef9953376377d0301fe5a (diff) | |
download | libxml2-18fb27808d464a220dabd74e1cac31416fcfa162.tar.gz |
ensured xmlDoc.URL is always canonic
Diffstat (limited to 'SAX.c')
-rw-r--r-- | SAX.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -762,7 +762,9 @@ startDocument(void *ctx) } if ((ctxt->myDoc != NULL) && (ctxt->myDoc->URL == NULL) && (ctxt->input != NULL) && (ctxt->input->filename != NULL)) { - ctxt->myDoc->URL = xmlStrdup((const xmlChar *) ctxt->input->filename); + ctxt->myDoc->URL = xmlCanonicPath((const xmlChar *) ctxt->input->filename); + if (ctxt->myDoc->URL == NULL) + ctxt->myDoc->URL = xmlStrdup((const xmlChar *) ctxt->input->filename); } } |