Commit 2b7a3610 authored by jcnventura's avatar jcnventura

Issue #1940732: apply filters to the in-page anchor tags.

parent fd4361ed
......@@ -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);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment