diff --git a/typo3/sysext/backend/Classes/Clipboard/Clipboard.php b/typo3/sysext/backend/Classes/Clipboard/Clipboard.php index 7abcff50364f1b52212972bf3e5c2259c260696a..87aeb9fd0ef9707b8af1b0ee44f3df466fca43f4 100644 --- a/typo3/sysext/backend/Classes/Clipboard/Clipboard.php +++ b/typo3/sysext/backend/Classes/Clipboard/Clipboard.php @@ -261,11 +261,10 @@ class Clipboard { $languageService = $this->getLanguageService(); $elementCount = count($this->elFromTable($this->fileMode ? '_FILE' : '')); - // Copymode Selector menu - $copymodeUrl = GeneralUtility::linkThisScript(); - - $this->view->assign('actionCopyModeUrl', htmlspecialchars(GeneralUtility::quoteJSvalue($copymodeUrl . '&CB[setCopyMode]='))); - $this->view->assign('actionCopyModeUrl1', htmlspecialchars(GeneralUtility::quoteJSvalue($copymodeUrl . '&CB[setCopyMode]=1'))); + // CopyMode Selector menu + $copyModeUrl = GeneralUtility::linkThisScript(); + $this->view->assign('actionCopyModeUrl', $copyModeUrl . '&CB[setCopyMode]=#clip_head'); + $this->view->assign('actionCopyModeUrl1', $copyModeUrl . '&CB[setCopyMode]=1#clip_head'); $this->view->assign('currentMode', $this->currentMode()); $this->view->assign('elementCount', $elementCount); diff --git a/typo3/sysext/backend/Classes/Controller/ContentElement/ElementHistoryController.php b/typo3/sysext/backend/Classes/Controller/ContentElement/ElementHistoryController.php index cbc8e91ddea0ad3a7cabd868b391e8dda5926e0a..9aa64d877d3af83e1538fe8fee45d0b7149605c0 100644 --- a/typo3/sysext/backend/Classes/Controller/ContentElement/ElementHistoryController.php +++ b/typo3/sysext/backend/Classes/Controller/ContentElement/ElementHistoryController.php @@ -151,7 +151,6 @@ class ElementHistoryController } } - $this->view->assign('TYPO3_REQUEST_URI', $normalizedParams->getRequestUrl()); $this->view->assign('editLock', $this->editLock); // Setting up the buttons and markers for docheader @@ -275,7 +274,7 @@ class ElementHistoryController foreach ($selector as $key => $values) { foreach ($values as $singleKey => $singleVal) { - $selector[$key][$singleKey]['scriptUrl'] = htmlspecialchars(GeneralUtility::quoteJSvalue($scriptUrl . '&settings[' . $key . ']=' . $singleKey)); + $selector[$key][$singleKey]['scriptUrl'] = $scriptUrl . '&settings[' . $key . ']=' . $singleKey; } } $this->view->assign('settings', $selector); diff --git a/typo3/sysext/backend/Resources/Private/Partials/Clipboard/CopymodeSelector.html b/typo3/sysext/backend/Resources/Private/Partials/Clipboard/CopymodeSelector.html index bf96693f1590b257bbeb18034d069a23832bd55d..2dbe21b2291daa81f8fe3a1af44026135d7158da 100644 --- a/typo3/sysext/backend/Resources/Private/Partials/Clipboard/CopymodeSelector.html +++ b/typo3/sysext/backend/Resources/Private/Partials/Clipboard/CopymodeSelector.html @@ -11,7 +11,7 @@ <span class="caret"></span> </button> <ul class="dropdown-menu" aria-labelledby="copymodeSelector"> - <li><a href="#" onclick="document.getElementById('clipboard_form').method='POST'; document.getElementById('clipboard_form').action={actionCopyModeUrl}; document.getElementById('clipboard_form').submit(); return true;">{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_misc.xlf:moveElements')}</a></li> - <li><a href="#" onclick="document.getElementById('clipboard_form').method='POST'; document.getElementById('clipboard_form').action={actionCopyModeUrl1}; document.getElementById('clipboard_form').submit(); return true;">{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_misc.xlf:copyElements')}</a></li> + <li><a href="{actionCopyModeUrl}">{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_misc.xlf:moveElements')}</a></li> + <li><a href="{actionCopyModeUrl1}">{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_misc.xlf:copyElements')}</a></li> </ul> </div> diff --git a/typo3/sysext/backend/Resources/Private/Partials/RecordHistory/Settings.html b/typo3/sysext/backend/Resources/Private/Partials/RecordHistory/Settings.html index e7084ad2860dce7f7f22c7bcb024a78c653f4757..d15542de7f5e6ebc54bf609967858e2228788eba 100644 --- a/typo3/sysext/backend/Resources/Private/Partials/RecordHistory/Settings.html +++ b/typo3/sysext/backend/Resources/Private/Partials/RecordHistory/Settings.html @@ -5,7 +5,7 @@ <a href="{fullHistoryUrl}" class="btn btn-default" style="margin-bottom: 5px;">{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:elementHistory_link')}</a> </f:if> </f:if> - <form name="settings" action="{TYPO3_REQUEST_URI}" method="post"> + <div id="element-history-settings"> <div class="row"> <div class="col-sm-12 col-md-6 col-lg-4"> <div class="panel panel-default"> @@ -54,8 +54,7 @@ </button> <ul class="dropdown-menu" aria-labelledby="copymodeSelector"> <f:for each="{values}" as="singleValue" key="singleKey"> - <li><a href="#" - onclick="document.settings.method='POST'; document.settings.action={singleValue.scriptUrl}; document.settings.submit()"> + <li><a href="{singleValue.scriptUrl}"> <f:if condition="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:{singleValue.value}')}"> <f:then>{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:{singleValue.value}')}</f:then> <f:else>{singleValue.value}</f:else> @@ -71,5 +70,5 @@ </div> </div> </div> - </form> + </div> </div> diff --git a/typo3/sysext/backend/Resources/Private/Templates/Clipboard/Main.html b/typo3/sysext/backend/Resources/Private/Templates/Clipboard/Main.html index 0eb2d26390319ddc6ad53f3aedd0f6bc98ef003a..7a2a98708696f4c43b0e86e63b47ddd3c58753fb 100644 --- a/typo3/sysext/backend/Resources/Private/Templates/Clipboard/Main.html +++ b/typo3/sysext/backend/Resources/Private/Templates/Clipboard/Main.html @@ -1,4 +1,5 @@ -<form action="" id="clipboard_form"> +<f:comment><!-- "clipboard_form" is kept for backward compatibility reasons, it's actually not a form anymore --></f:comment> +<div id="clipboard_form"> <a name="clip_head"></a> <div class="row"> <div class="col-sm-12"> @@ -30,4 +31,4 @@ </div> </div> </div> -</form> +</div>