Merge d8a73e7951f2408c6ac1fc79b7540be0b71f25b6 into 91e1911308a0e458e63e0c14733d876ae4d57a7a
This commit is contained in:
commit
a2082978be
@ -209,12 +209,16 @@ elseif( empty($base) ) {
|
||||
$base = dirname($base);
|
||||
}
|
||||
|
||||
if($base!=DS) {
|
||||
// Assume URLs are rewritten to server root if current URL doesn't start with $base
|
||||
if (strpos($_SERVER['REQUEST_URI'], $base) !== 0) {
|
||||
$base = '/';
|
||||
}
|
||||
|
||||
if($base!=DS and strlen($base > 0)) {
|
||||
$base = trim($base, '/');
|
||||
$base = '/'.$base.'/';
|
||||
}
|
||||
else {
|
||||
// Workaround for Windows Web Servers
|
||||
$base = '/';
|
||||
}
|
||||
|
||||
|
@ -84,12 +84,16 @@ elseif( empty($base) ) {
|
||||
$base = dirname($base);
|
||||
}
|
||||
|
||||
if($base!=DS) {
|
||||
// Assume URLs are rewritten to server root if current URL doesn't start with $base
|
||||
if (strpos($_SERVER['REQUEST_URI'], $base) !== 0) {
|
||||
$base = '/';
|
||||
}
|
||||
|
||||
if($base!=DS and strlen($base > 0)) {
|
||||
$base = trim($base, '/');
|
||||
$base = '/'.$base.'/';
|
||||
}
|
||||
else {
|
||||
// Workaround for Windows Web Servers
|
||||
$base = '/';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user