From 64446b8a5b0209ece0eaf4dd050a44098ed3f504 Mon Sep 17 00:00:00 2001 From: Sascha Egerer Date: Thu, 16 Feb 2017 23:22:54 +0100 Subject: [PATCH] [CLEANUP] Fix usage of GeneralUtility::quoteJSvalue The function GeneralUtility::quoteJSvalue is sometimes called with a second parameter but it does only have on parameter. Resolves: #79867 Releases: master Change-Id: I994501574b798026f43a0e463a633e05ffc1cff3 Reviewed-on: https://review.typo3.org/51727 Tested-by: TYPO3com Reviewed-by: Christian Kuhn Tested-by: Christian Kuhn --- Classes/FrontendEditPanel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/FrontendEditPanel.php b/Classes/FrontendEditPanel.php index f41b232..187d1e1 100644 --- a/Classes/FrontendEditPanel.php +++ b/Classes/FrontendEditPanel.php @@ -275,7 +275,7 @@ class FrontendEditPanel } else { if ($confirm && $this->backendUser->jsConfirmation(JsConfirmation::FE_EDIT)) { // Gets htmlspecialchared later - $cf1 = 'if (confirm(' . GeneralUtility::quoteJSvalue($confirm, true) . ')) {'; + $cf1 = 'if (confirm(' . GeneralUtility::quoteJSvalue($confirm) . ')) {'; $cf2 = '}'; } else { $cf1 = ($cf2 = '');