Can not use redirector for setup.

We currently have no reasonable way to protect it there.
This commit is contained in:
Michal Čihař
2011-05-20 09:46:15 +02:00
parent ecfc8ba4f7
commit b7a8179eb6

View File

@@ -681,15 +681,12 @@ function PMA_array_remove($path, &$array)
* @return string URL for a link. * @return string URL for a link.
*/ */
function PMA_linkURL($url) { function PMA_linkURL($url) {
$params = array(); if (!preg_match('#^https?://#', $url) || defined('PMA_SETUP')) {
$params['url'] = $url;
$goto = 'url.php' . PMA_generate_common_url($params);
if (!preg_match('#^https?://#', $url)) {
return $url; return $url;
} elseif (defined('PMA_SETUP')) {
return '../' . $goto;
} else { } else {
return './' . $goto; $params = array();
$params['url'] = $url;
return './url.php' . PMA_generate_common_url($params);
} }
} }