}
// "Move" wizard link for pages/tt_content elements:
if ($table == 'tt_content' && $permsEdit || $table == 'pages') {
- $onClick = htmlspecialchars('return jumpExt(\'' . $this->backPath . 'move_el.php?table=' . $table . '&uid=' . $row['uid'] . '\');');
+ $onClick = 'return jumpExt(\'' . $this->backPath . 'move_el.php?table=' . $table . '&uid=' . $row['uid'] . '\');';
$linkTitleLL = $GLOBALS['LANG']->getLL('move_' . ($table === 'tt_content' ? 'record' : 'page'), TRUE);
$spriteIcon = $table === 'tt_content'
? IconUtility::getSpriteIcon('actions-document-move')
: IconUtility::getSpriteIcon('actions-page-move');
- $cells['move'] = '<a class="btn" href="#" onclick="' . $onClick . '" title="' . $linkTitleLL . '">' . $spriteIcon . '</a>';
+ $cells['move'] = '<a class="btn" href="#" onclick="' . htmlspecialchars($onClick) . '" title="' . $linkTitleLL . '">' . $spriteIcon . '</a>';
}
// If the extended control panel is enabled OR if we are seeing a single table:
if ($GLOBALS['SOBE']->MOD_SETTINGS['bigControlPanel'] || $this->table) {
// "Info": (All records)
- $onClick = htmlspecialchars(('top.launchView(\'' . $table . '\', \'' . $row['uid'] . '\'); return false;'));
- $cells['viewBig'] = '<a class="btn" href="#" onclick="' . $onClick . '" title="' . $GLOBALS['LANG']->getLL('showInfo', TRUE) . '">'
+ $onClick = 'top.launchView(\'' . $table . '\', \'' . $row['uid'] . '\'); return false;';
+ $cells['viewBig'] = '<a class="btn" href="#" onclick="' . htmlspecialchars($onClick) . '" title="' . $GLOBALS['LANG']->getLL('showInfo', TRUE) . '">'
. IconUtility::getSpriteIcon('actions-document-info') . '</a>';
// If the table is NOT a read-only table, then show these links:
if (!$GLOBALS['TCA'][$table]['ctrl']['readOnly']) {
// "Revert" link (history/undo)
$moduleUrl = BackendUtility::getModuleUrl('record_history', array('element' => $table . ':' . $row['uid']));
- $onClick = htmlspecialchars('return jumpExt(' . GeneralUtility::quoteJSvalue($this->backPath . $moduleUrl) . ',\'#latest\');');
- $cells['history'] = '<a class="btn" href="#" onclick="' . $onClick . '" title="'
+ $onClick = 'return jumpExt(' . GeneralUtility::quoteJSvalue($this->backPath . $moduleUrl) . ',\'#latest\');';
+ $cells['history'] = '<a class="btn" href="#" onclick="' . htmlspecialchars($onClick) . '" title="'
. $GLOBALS['LANG']->getLL('history', TRUE) . '">'
. IconUtility::getSpriteIcon('actions-document-history-open') . '</a>';
// Versioning:
if (count($vers) > 1) {
$versionIcon = count($vers) - 1;
}
- $href = htmlspecialchars($this->backPath . BackendUtility::getModuleUrl('web_txversionM1', array(
+ $href = $this->backPath . BackendUtility::getModuleUrl('web_txversionM1', array(
'table' => $table, 'uid' => $row['uid']
- )));
- $cells['version'] = '<a class="btn" href="' . $href . '" title="'
+ ));
+ $cells['version'] = '<a class="btn" href="' . htmlspecialchars($href) . '" title="'
. $GLOBALS['LANG']->getLL('displayVersions', TRUE) . '">'
. IconUtility::getSpriteIcon(('status-version-' . $versionIcon)) . '</a>';
}
}
// "Edit Perms" link:
if ($table === 'pages' && $GLOBALS['BE_USER']->check('modules', 'system_BeuserTxPermission') && ExtensionManagementUtility::isLoaded('beuser')) {
- $href = htmlspecialchars((BackendUtility::getModuleUrl('system_BeuserTxPermission') . '&id=' . $row['uid'] . '&return_id=' . $row['uid'] . '&edit=1'));
- $cells['perms'] = '<a class="btn" href="' . $href . '" title="'
+ $href = BackendUtility::getModuleUrl('system_BeuserTxPermission') . '&id=' . $row['uid'] . '&return_id=' . $row['uid'] . '&edit=1';
+ $cells['perms'] = '<a class="btn" href="' . htmlspecialchars($href) . '" title="'
. $GLOBALS['LANG']->getLL('permissions', TRUE) . '">'
. IconUtility::getSpriteIcon('status-status-locked') . '</a>';
}
);
$params = '&cmd[' . $table . '][' . $row['uid'] . '][delete]=1';
- $onClick = htmlspecialchars('if (confirm(' . $warningText . ')) {jumpToUrl(\''
- . $GLOBALS['SOBE']->doc->issueCommand($params, -1) . '\');} return false;');
+ $onClick = 'if (confirm(' . $warningText . ')) {jumpToUrl(\''
+ . $GLOBALS['SOBE']->doc->issueCommand($params, -1) . '\');} return false;';
$icon = IconUtility::getSpriteIcon('actions-edit-' . $actionName);
$linkTitle = $GLOBALS['LANG']->getLL($actionName, TRUE);
- $cells['delete'] = '<a class="btn" href="#" onclick="' . $onClick . '" title="' . $linkTitle . '">' . $icon . '</a>';
+ $cells['delete'] = '<a class="btn" href="#" onclick="' . htmlspecialchars($onClick) . '" title="' . $linkTitle . '">' . $icon . '</a>';
}
// "Levels" links: Moving pages into new levels...
if ($permsEdit && $table == 'pages' && !$this->searchLevels) {
$editUserAccountUrl = 'alt_doc.php?returnUrl=' .
rawurlencode(BackendUtility::getModuleUrl('system_ReportsTxreportsm1')) . '&edit[be_users][' . $row['uid'] . ']=edit';
$message = sprintf($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:warning.backend_admin'),
- '<a href="' . $editUserAccountUrl . '">', '</a>');
+ '<a href="' . htmlspecialchars($editUserAccountUrl) . '">', '</a>');
}
}
$GLOBALS['TYPO3_DB']->sql_free_result($res);
$severity = \TYPO3\CMS\Reports\Status::ERROR;
$changeInstallToolPasswordUrl = BackendUtility::getModuleUrl('system_InstallInstall');
$message = sprintf($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:warning.installtool_default_password'),
- '<a href="' . $changeInstallToolPasswordUrl . '">', '</a>');
+ '<a href="' . htmlspecialchars($changeInstallToolPasswordUrl) . '">', '</a>');
}
return GeneralUtility::makeInstance(\TYPO3\CMS\Reports\Status::class,
$GLOBALS['LANG']->getLL('status_installToolPassword'), $value, $message, $severity);