summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoao Ventura2014-04-02 00:13:21 (GMT)
committerJoao Ventura2014-04-02 00:13:50 (GMT)
commitc0db58c39d272b67e9443db39b1372fb399b71aa (patch)
treeac3c403cfdd5b15391c39d041d020fb947b2a994
parent736d4ab80379d36dec16640356f54c2dad229821 (diff)
Issue #1940732: apply filters to the in-page anchor tags.6.x-1.196.x-1.x
-rw-r--r--print.pages.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/print.pages.inc b/print.pages.inc
index f173bb4..07e3cf6 100644
--- a/print.pages.inc
+++ b/print.pages.inc
@@ -380,7 +380,7 @@ function _print_rewrite_urls($matches) {
}
// Because base href is the original page, change the link to
// still be usable inside the print page
- $matches[1] = str_replace($url, base_path() . $_GET['q'] . $url, $matches[1]);
+ $matches[1] = str_replace($url, check_plain(base_path() . $_GET['q'] . $url), $matches[1]);
}
else {
// URL is relative, convert it into absolute URL
@@ -409,7 +409,7 @@ function _print_rewrite_urls($matches) {
}
}
- return $ret;
+ return filter_xss_admin($ret);
}
/**