From 6bf0ea929dd7a61c6515e6b45f8eea371fdf9dfa Mon Sep 17 00:00:00 2001 From: Luc MULLER Date: Wed, 16 Feb 2022 09:45:50 +0100 Subject: [PATCH] [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 --- tarteaucitron.services.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 5dd9385..d2dfbda 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -12,7 +12,7 @@ tarteaucitron.services.iframe = { "js": function () { "use strict"; 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"), height = x.getAttribute("height"), allowfullscreen = x.getAttribute("allowfullscreen"),