Strip HTML entities from the browser's window title. Closes GitLab issue #517. Thanks to Daniel Carrico @daniel1113 for the report.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -14,6 +14,9 @@
|
||||
* Add support for indexing on OCR content changes.
|
||||
* Add support for reindexing document on content parsing
|
||||
changes.
|
||||
* Strip HTML entities from the browser's window title.
|
||||
Closes GitLab issue #517. Thanks to Daniel Carrico @daniel1113
|
||||
for the report.
|
||||
|
||||
3.1.3 (2018-09-27)
|
||||
==================
|
||||
|
||||
@@ -114,5 +114,7 @@
|
||||
|
||||
<script>
|
||||
document.title = '{% filter escapejs %}{% spaceless %}{% block title %}{% endblock %} :: {% block project_name %}{% smart_setting "COMMON_PROJECT_TITLE" %}{% endblock %}{% endspaceless %}{% endfilter %}';
|
||||
// Strip HTML entities from the title
|
||||
document.title = document.title.replace(/&(?:[a-z\d]+|#\d+|#x[a-f\d]+);/ig, '');
|
||||
afterBaseLoad();
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user