[BUGFIX] Escape value in FormEngine.removeOption selector 57/53557/2
authorWolfgang Klinger <wk@plan2.net>
Fri, 14 Jul 2017 21:47:49 +0000 (23:47 +0200)
committerSusanne Moog <susanne.moog@typo3.org>
Fri, 21 Jul 2017 07:07:49 +0000 (09:07 +0200)
Resolves: #81806
Releases: master, 8.7, 7.6
Change-Id: I1efc630a5579be8c8a1569667253f2572b9261ed
Reviewed-on: https://review.typo3.org/53557
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 edf73ce..7b0f253 100644 (file)
@@ -565,7 +565,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);
                });