From f99da7bacff9743bc2a62e8fa0391b6fb0dad4a1 Mon Sep 17 00:00:00 2001 From: pjrm Date: Sat, 18 Apr 2009 12:34:06 +0000 Subject: [PATCH] Fix #358704 that I introduced with r21075. --- src/xml/rebase-hrefs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xml/rebase-hrefs.cpp b/src/xml/rebase-hrefs.cpp index cfe6bef7c..ec43bb178 100644 --- a/src/xml/rebase-hrefs.cpp +++ b/src/xml/rebase-hrefs.cpp @@ -21,7 +21,7 @@ href_needs_rebasing(char const *const href) { 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 -- 2.30.2