Can not use redirector for setup.
We currently have no reasonable way to protect it there.
This commit is contained in:
@@ -681,15 +681,12 @@ function PMA_array_remove($path, &$array)
|
||||
* @return string URL for a link.
|
||||
*/
|
||||
function PMA_linkURL($url) {
|
||||
$params = array();
|
||||
$params['url'] = $url;
|
||||
$goto = 'url.php' . PMA_generate_common_url($params);
|
||||
if (!preg_match('#^https?://#', $url)) {
|
||||
if (!preg_match('#^https?://#', $url) || defined('PMA_SETUP')) {
|
||||
return $url;
|
||||
} elseif (defined('PMA_SETUP')) {
|
||||
return '../' . $goto;
|
||||
} else {
|
||||
return './' . $goto;
|
||||
$params = array();
|
||||
$params['url'] = $url;
|
||||
return './url.php' . PMA_generate_common_url($params);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user