mirror of
https://github.com/FriendsOfTYPO3/feedit.git
synced 2024-11-22 14:36:08 +01:00
[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 <no-reply@typo3.com> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
This commit is contained in:
parent
6e4bdb9920
commit
64446b8a5b
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ class FrontendEditPanel
|
||||||
} else {
|
} else {
|
||||||
if ($confirm && $this->backendUser->jsConfirmation(JsConfirmation::FE_EDIT)) {
|
if ($confirm && $this->backendUser->jsConfirmation(JsConfirmation::FE_EDIT)) {
|
||||||
// Gets htmlspecialchared later
|
// Gets htmlspecialchared later
|
||||||
$cf1 = 'if (confirm(' . GeneralUtility::quoteJSvalue($confirm, true) . ')) {';
|
$cf1 = 'if (confirm(' . GeneralUtility::quoteJSvalue($confirm) . ')) {';
|
||||||
$cf2 = '}';
|
$cf2 = '}';
|
||||||
} else {
|
} else {
|
||||||
$cf1 = ($cf2 = '');
|
$cf1 = ($cf2 = '');
|
||||||
|
|
Loading…
Reference in a new issue