From 3e46941c8723f32fdcdd92f482ebde259341eab1 Mon Sep 17 00:00:00 2001 From: Tymoteusz Motylewski <t.motylewski@gmail.com> Date: Tue, 19 Dec 2017 10:18:20 +0100 Subject: [PATCH] [BUGFIX] Replace /s JS regex flag(modifier) with [/s/S] to match all characters including new line. Resolves: #83385 Releases: master Change-Id: I5c36550ddf3503f16006800d417c819d47af7fc4 Reviewed-on: https://review.typo3.org/55157 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Nils Seinschedt <n.seinschedt@neusta.de> Reviewed-by: Benjamin Kluge <b.kluge@neusta.de> Tested-by: Benjamin Kluge <b.kluge@neusta.de> Reviewed-by: Andreas Fernandez <typo3@scripting-base.de> Tested-by: Andreas Fernandez <typo3@scripting-base.de> Reviewed-by: Nicole Cordes <typo3@cordes.co> Tested-by: Nicole Cordes <typo3@cordes.co> --- typo3/sysext/backend/Resources/Public/JavaScript/SvgTree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/backend/Resources/Public/JavaScript/SvgTree.js b/typo3/sysext/backend/Resources/Public/JavaScript/SvgTree.js index 448fcfda20b2..aa6150c4a9b2 100644 --- a/typo3/sysext/backend/Resources/Public/JavaScript/SvgTree.js +++ b/typo3/sysext/backend/Resources/Public/JavaScript/SvgTree.js @@ -437,7 +437,7 @@ define( icon: '', }; Icons.getIcon(iconName, Icons.sizes.small, null, null, 'inline').done(function (icon) { - _this.data.icons[iconName].icon = icon.match(/<svg.*<\/svg>/is)[0]; + _this.data.icons[iconName].icon = icon.match(/<svg[\s\S]*<\/svg>/i)[0]; if (update) { _this.update(); -- GitLab