[HOTFIX/884]Fixes Uncaught TypeError: Cannot read properties of null (reading 'toString') at Object.fixSelfXSS (tarteaucitron.js?1638786396:1772:21)

if tac_iframe does not have any title fixSelfXss fails.
This commit fixes #884
This commit is contained in:
Luc MULLER 2022-02-16 09:45:50 +01:00
parent 1f4fdcf940
commit 6bf0ea929d
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ tarteaucitron.services.iframe = {
"js": function () { "js": function () {
"use strict"; "use strict";
tarteaucitron.fallback(['tac_iframe'], function (x) { tarteaucitron.fallback(['tac_iframe'], function (x) {
var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title")), var frame_title = (x.getAttribute("title")) ? tarteaucitron.fixSelfXSS(x.getAttribute("title")) : '',
width = x.getAttribute("width"), width = x.getAttribute("width"),
height = x.getAttribute("height"), height = x.getAttribute("height"),
allowfullscreen = x.getAttribute("allowfullscreen"), allowfullscreen = x.getAttribute("allowfullscreen"),