projects
/
phppgadmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f1f70b
)
Fixed redirection when installed in sub dir.
author
jollytoad
<jollytoad>
Wed, 14 Jul 2004 07:57:06 +0000
(07:57 +0000)
committer
jollytoad
<jollytoad>
Wed, 14 Jul 2004 07:57:06 +0000
(07:57 +0000)
redirect.php
patch
|
blob
|
blame
|
history
diff --git
a/redirect.php
b/redirect.php
index 974b598c735465b1977a96e62289736e62a69513..dbfdbfb701118dd6ab494df3b20b219cf64ed30d 100644
(file)
--- a/
redirect.php
+++ b/
redirect.php
@@
-4,7
+4,8
@@
$url = $misc->getLastTabURL($_REQUEST['section']);
if (is_string($url)) {
- header("Location: http://{$_SERVER['HTTP_HOST']}/{$url}");
+ $dir = substr($_SERVER['REQUEST_URI'], 0, strrpos ($_SERVER['REQUEST_URI'],'/'));
+ header("Location: http://{$_SERVER['HTTP_HOST']}{$dir}/{$url}");
exit;
}