[project @ 2004-06-29 12:38:49 by bursa]

Fix bug in rewrite_urls(): xmlNodes may have no name.

svn path=/import/netsurf/; revision=1027
This commit is contained in:
James Bursa 2004-06-29 12:38:49 +00:00
parent 08b8e8cc21
commit 6efe47b59d

View File

@ -485,8 +485,11 @@ bool rewrite_urls(xmlNode *n, const char *base)
* 5) background any (except those above)
*/
if (!n->name) {
/* ignore */
}
/* 1 */
if (strcmp(n->name, "object") == 0) {
else if (strcmp(n->name, "object") == 0) {
if (!rewrite_url(n, "data", base))
return false;
}