[BUGFIX] Escape value in FormEngine.removeOption selector 63/53563/2
authorWolfgang Klinger <wk@plan2.net>
Fri, 14 Jul 2017 21:47:49 +0000 (23:47 +0200)
committerSusanne Moog <susanne.moog@typo3.org>
Mon, 24 Jul 2017 05:29:23 +0000 (07:29 +0200)
Resolves: #81806
Releases: master, 8.7, 7.6
Change-Id: I1efc630a5579be8c8a1569667253f2572b9261ed
Reviewed-on: https://review.typo3.org/53563
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/Resources/Public/JavaScript/FormEngine.js

index 2d8fc9a..8799ff5 100644 (file)
@@ -566,7 +566,7 @@ define(['jquery',
 
                $selected.each(function() {
                        $availableFieldEl
-                               .find('option[value="' + $(this).attr('value') + '"]')
+                               .find('option[value="' + $.escapeSelector($(this).attr('value')) + '"]')
                                .removeClass('hidden')
                                .prop('disabled', false);
                });