Commit 7a108388 authored by Oliver Hader's avatar Oliver Hader
Browse files

Reverted fix for bug #15260

git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-1@8450 709f56b5-9817-0410-a4d7-c38de5d9e867
parent 554b8b71
2010-07-30 Oliver Hader <oliver@typo3.org>
* Reverted fix for bug #15260
2010-07-28 Oliver Hader <oliver@typo3.org>
* Fixed bug #15260: Use of undefined method t3lib_div::sanitizeLocalUrl()
......
......@@ -3575,22 +3575,6 @@ class t3lib_div {
return $url;
}
/**
* Checks if a given string is a valid frame URL to be loaded in the
* backend.
*
* This is a wrapper for sanitizeBackEndUrl() which only exists in TYPO3 4.1.
* Since TYPO3 4.2 the method is called sanitizeLocalUrl().
*
* @param string $url potential URL to check
*
* @return string either $url if $url is considered to be harmless, or an
* empty string otherwise
*/
function sanitizeLocalUrl($url = '') {
return t3lib_div::sanitizeBackEndUrl($url);
}
/**
* Moves $source file to $destination if uploaded, otherwise try to make a copy
* Usage: 4
......
......@@ -72,7 +72,7 @@ class SC_logout {
$BE_USER->writelog(255,2,0,1,'User %s logged out from TYPO3 Backend',Array($BE_USER->user['username'])); // Logout written to log
$BE_USER->logoff();
$redirect = t3lib_div::sanitizeBackEndUrl(t3lib_div::_GP('redirect'));
$redirect = t3lib_div::sanitizeLocalUrl(t3lib_div::_GP('redirect'));
$redirectUrl = $redirect ? $redirect : 'index.php';
header('Location: '.t3lib_div::locationHeaderUrl($redirectUrl));
......
......@@ -112,7 +112,7 @@ class SC_tce_db {
$this->cmd = t3lib_div::_GP('cmd');
$this->mirror = t3lib_div::_GP('mirror');
$this->cacheCmd = t3lib_div::_GP('cacheCmd');
$this->redirect = t3lib_div::sanitizeBackEndUrl(t3lib_div::_GP('redirect'));
$this->redirect = t3lib_div::sanitizeLocalUrl(t3lib_div::_GP('redirect'));
$this->prErr = t3lib_div::_GP('prErr');
$this->_disableRTE = t3lib_div::_GP('_disableRTE');
$this->CB = t3lib_div::_GP('CB');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment