mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-15 02:04:54 +02:00
fix base dir detection
This commit is contained in:
@@ -128,6 +128,11 @@ if (false !== $pos = strpos($uri, '?')) {
|
||||
}
|
||||
|
||||
$uri = rawurldecode($uri);
|
||||
if (BASE_DIR !== '') {
|
||||
$tmp = str_replace_first('/', '', BASE_DIR);
|
||||
$uri = str_replace_first($tmp . '/', '', $uri);
|
||||
}
|
||||
|
||||
define('URI', $uri);
|
||||
|
||||
$found = true;
|
||||
|
Reference in New Issue
Block a user