diff options
author | Joao Ventura | 2014-04-02 00:13:21 (GMT) |
---|---|---|
committer | Joao Ventura | 2014-04-02 00:13:21 (GMT) |
commit | 2b7a3610f75a2c62a8b0ceabf1a01b0ddc92b44d (patch) | |
tree | d4c729a904e97d4984f73eea72c394379edc0c30 | |
parent | fd4361eda257ed478c229a1b2efc76ed411823ce (diff) |
Issue #1940732: apply filters to the in-page anchor tags.7.x-2.0
-rw-r--r-- | print.pages.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/print.pages.inc b/print.pages.inc index acf3973..691be7d 100644 --- a/print.pages.inc +++ b/print.pages.inc @@ -475,7 +475,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 @@ -504,7 +504,7 @@ function _print_rewrite_urls($matches) { } } - return $ret; + return filter_xss_admin($ret); } /** |