From cc0cc81e2ce8e88a96317991e46399dfb955bb6e Mon Sep 17 00:00:00 2001 From: Tom Reijnders Date: Fri, 15 Jul 2022 11:27:05 +0200 Subject: [PATCH] Fixed #1137 - Using or other font attributes in section title crashes in javascript - Fixed this for page titles as well --- fix.php | 1 + fixCDATA.php | 1 + modules/site/parent_templates/site/common/js/application.js | 3 ++- modules/site/player_html5/rloObject.htm | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 fix.php create mode 100644 fixCDATA.php diff --git a/fix.php b/fix.php new file mode 100644 index 000000000..b3d9bbc7f --- /dev/null +++ b/fix.php @@ -0,0 +1 @@ +' + name + '

').children().length > 0) { - name = $(name); + name = $('

' + name + '

'); name.css({ 'font-size': '', 'background-color': 'transparent' }); name.find('[style*="font-size"]').css('font-size', ''); name.find('[style*="background-color"]').css('background-color', 'transparent'); + name = name.html(); } if ($(this).attr('pageLink') != undefined && $(this).attr('pageLink') != '') { diff --git a/modules/site/player_html5/rloObject.htm b/modules/site/player_html5/rloObject.htm index 2a5ae794f..cc630e732 100644 --- a/modules/site/player_html5/rloObject.htm +++ b/modules/site/player_html5/rloObject.htm @@ -36,7 +36,7 @@ - +