summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bfc3386)
raw | patch | inline | side by side (parent: bfc3386)
author | pjrm <pjrm@users.sourceforge.net> | |
Sat, 18 Apr 2009 12:34:06 +0000 (12:34 +0000) | ||
committer | pjrm <pjrm@users.sourceforge.net> | |
Sat, 18 Apr 2009 12:34:06 +0000 (12:34 +0000) |
src/xml/rebase-hrefs.cpp | patch | blob | history |
index cfe6bef7c66e28ea8d37b40d56679dac1784ce39..ec43bb178b99fc6f6cefb1f935fb794d4f67fadf 100644 (file)
--- a/src/xml/rebase-hrefs.cpp
+++ b/src/xml/rebase-hrefs.cpp
{
g_return_val_if_fail(href, false);
- if (!*href) {
+ if (!*href || *href == '#') {
return false;
/* False (no change) is the right behaviour even when the base URI differs from the
* document URI: RFC 3986 defines empty string relative URL as referring to the containing