[BUGFIX] Don’t cut urls in link browser 83/57183/3
authorFrank Naegler <frank.naegler@typo3.org>
Mon, 11 Jun 2018 13:31:27 +0000 (15:31 +0200)
committerSusanne Moog <susanne.moog@typo3.org>
Mon, 11 Jun 2018 15:05:09 +0000 (17:05 +0200)
Using the second parameter of TBE_EDITOR.rawurlencode cuts the input to
200 characters for any input value. The parameter is rather useless and
its usage can be simply removed to allow URLs with more than 200
characters.

Resolves: #85226
Releases: master, 8.7
Change-Id: I8391488d6fb21ede9280041dd41e3feb7e19dbd1
Reviewed-on: https://review.typo3.org/57183
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Tested-by: Joerg Boesche <typo3@joergboesche.de>
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/FieldControl/EditPopup.php
typo3/sysext/backend/Classes/Form/FieldControl/LinkPopup.php

index 66a2f60..77cf3a2 100644 (file)
@@ -70,7 +70,7 @@ class EditPopup extends AbstractNode
         $onClick[] = 'vHWin=window.open(';
         $onClick[] =    GeneralUtility::quoteJSvalue($url);
         $onClick[] =    '+\'&P[currentValue]=\'+TBE_EDITOR.rawurlencode(';
-        $onClick[] =        'document.editform[' . GeneralUtility::quoteJSvalue($itemName) . '].value,300';
+        $onClick[] =        'document.editform[' . GeneralUtility::quoteJSvalue($itemName) . '].value';
         $onClick[] =    ')';
         $onClick[] =    '+\'&P[currentSelectedValues]=\'+TBE_EDITOR.curSelected(';
         $onClick[] =        GeneralUtility::quoteJSvalue($itemName);
index b074af9..bde80ea 100644 (file)
@@ -71,7 +71,7 @@ class LinkPopup extends AbstractNode
         $onClick[] = 'vHWin=window.open(';
         $onClick[] =    GeneralUtility::quoteJSvalue($url);
         $onClick[] =    '+\'&P[currentValue]=\'+TBE_EDITOR.rawurlencode(';
-        $onClick[] =        'document.editform[' . GeneralUtility::quoteJSvalue($itemName) . '].value,300';
+        $onClick[] =        'document.editform[' . GeneralUtility::quoteJSvalue($itemName) . '].value';
         $onClick[] =    ')';
         $onClick[] =    '+\'&P[currentSelectedValues]=\'+TBE_EDITOR.curSelected(';
         $onClick[] =        GeneralUtility::quoteJSvalue($itemName);