We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecfc8ba commit b7a8179Copy full SHA for b7a8179
libraries/core.lib.php
@@ -681,15 +681,12 @@ function PMA_array_remove($path, &$array)
681
* @return string URL for a link.
682
*/
683
function PMA_linkURL($url) {
684
- $params = array();
685
- $params['url'] = $url;
686
- $goto = 'url.php' . PMA_generate_common_url($params);
687
- if (!preg_match('#^https?://#', $url)) {
+ if (!preg_match('#^https?://#', $url) || defined('PMA_SETUP')) {
688
return $url;
689
- } elseif (defined('PMA_SETUP')) {
690
- return '../' . $goto;
691
} else {
692
- return './' . $goto;
+ $params = array();
+ $params['url'] = $url;
+ return './url.php' . PMA_generate_common_url($params);
693
}
694
695
0 commit comments