Commit c0db58c3 authored by jcnventura's avatar jcnventura

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

parent 736d4ab8
......@@ -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);
}
/**
......
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