[BUGFIX] Fix wrong quoting in AdminPanelView 62/56462/3
authorSascha Löffler <lsascha@gmail.com>
Mon, 26 Mar 2018 22:39:20 +0000 (00:39 +0200)
committerTymoteusz Motylewski <t.motylewski@gmail.com>
Thu, 29 Mar 2018 08:39:23 +0000 (10:39 +0200)
Fixes wrong quotes for preview_simulateDate in
AdminPanel.

Resolves: #84524
Related: #83357
Releases: 8.7
Change-Id: I0f9834b6f651538ab6a107f99600b5400497db66
Reviewed-on: https://review.typo3.org/56462
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Tested-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
typo3/sysext/frontend/Classes/View/AdminPanelView.php

index bef355e..9032cb9 100644 (file)
@@ -465,7 +465,7 @@ class AdminPanelView
             $output[] = '  <label for="preview_simulateDate">';
             $output[] = '    ' . $this->extGetLL('preview_simulateDate');
             $output[] = '  </label>';
-            $output[] = '  <input type="text" id="preview_simulateDate" name="TSFE_ADMIN_PANEL[preview_simulateDate]_hr" onchange="TSFEtypo3FormFieldGet(' . GeneralUtility::quoteJSvalue('TSFE_ADMIN_PANEL[preview_simulateDate]') . ', "datetime", "", 1,0);" />';
+            $output[] = '  <input type="text" id="preview_simulateDate" name="TSFE_ADMIN_PANEL[preview_simulateDate]_hr" onchange="TSFEtypo3FormFieldGet(' . GeneralUtility::quoteJSvalue('TSFE_ADMIN_PANEL[preview_simulateDate]') . ', \'datetime\', \'\', 1,0);" />';
             // the hidden field must be placed after the _hr field to avoid the timestamp being overridden by the date string
             $output[] = '  <input type="hidden" name="TSFE_ADMIN_PANEL[preview_simulateDate]" value="' . htmlspecialchars($this->getBackendUser()->uc['TSFE_adminConfig']['preview_simulateDate']) . '" />';
             $output[] = '</div>';