[BUGFIX] Properly escape "dropzone-target" selector in DragUploader.js 25/54825/3
authorGiannis Economou <gecon@antithesis.gr>
Thu, 6 Jul 2017 11:20:21 +0000 (14:20 +0300)
committerSusanne Moog <susanne.moog@typo3.org>
Wed, 6 Dec 2017 20:00:01 +0000 (21:00 +0100)
commit0ccf07d7f3d31f25905170c93b86f1f2ce17ce02
tree4693ea2ae06383a33ecee789797da2f2af29d351
parent16fcdd408ce191c5f60ab5a70d39589a1c1680fa
[BUGFIX] Properly escape "dropzone-target" selector in DragUploader.js

We properly escape some characters of "dropzone-target" data attribute,
since it is being used as a CSS selector to insert the dropzone in
our DOM. The "dropzone-target" might contain characters that have a
special meaning in CSS, like for example a dot. Especially the dot
is typical for cases like flexforms fields.

This allows drag and drop file uploads even on such cases (like for
example working drag and drop file uploads in DCE content elements).

Resolves: #81812
Releases: master, 8.7
Change-Id: Ib1f5b5063e390f08436fd3a51978842754b698ef
Reviewed-on: https://review.typo3.org/54825
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/backend/Classes/Form/Container/InlineControlContainer.php
typo3/sysext/backend/Resources/Public/JavaScript/DragUploader.js
typo3/sysext/core/Classes/Utility/StringUtility.php
typo3/sysext/core/Tests/Unit/Utility/StringUtilityTest.php