projects
/
GitHub
/
Stricted
/
Domain-Control-Panel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
646539a
)
fix double slash in url
zend
author
Stricted
<info@stricted.net>
Wed, 20 Jul 2016 07:31:28 +0000
(09:31 +0200)
committer
Stricted
<info@stricted.net>
Wed, 20 Jul 2016 07:31:28 +0000
(09:31 +0200)
lib/system/RequestHandler.class.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/system/RequestHandler.class.php
b/lib/system/RequestHandler.class.php
index 98e3fa2e6b3469a3c32cccf30792a3d544e1e935..13c29010b5b7b12710f0bb7bedecf6402f1704b1 100644
(file)
--- a/
lib/system/RequestHandler.class.php
+++ b/
lib/system/RequestHandler.class.php
@@
-150,7
+150,8
@@
class RequestHandler extends SingletonFactory {
$protocol = 'https://';
}
- return $protocol . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '/';
+ $dirname = dirname($_SERVER['PHP_SELF']);
+ return $protocol . $_SERVER['HTTP_HOST'] . ($dirname == '/' ? $dirname : $dirname . '/');
}
public function getLink (array $params = [], $query = '') {