Skip to content
Snippets Groups Projects
Commit 42101cdf authored by srosse's avatar srosse
Browse files

OO-863: allow umlaut in the title of the page

parent 7dac6f70
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@
#if($pageTitle)
<script type="text/javascript">
/* <![CDATA[ */
document.title = "$r.translate("page.appname") - $r.escapeDoubleQuotes($r.xssScan($pageTitle))";
document.title = "$r.translate("page.appname") - $r.escapeDoubleQuotes($r.filterHtml($pageTitle))";
/* ]]> */
</script>
#end
......
......@@ -527,6 +527,14 @@ public class VelocityRenderDecorator implements Closeable{
return filter.filter(str);
}
public String filterHtml(String str) {
if(str == null) {
return "";
}
return FilterFactory.getHtmlTagsFilter().filter(str);
}
/**
* @param key
* @return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment