mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-02-23 18:19:48 -05:00
@@ -100,7 +100,10 @@ class Minz_Request {
|
||||
} else {
|
||||
$url .= '://' . $host . ($port == 80 ? '' : ':' . $port);
|
||||
}
|
||||
$url .= isset($_SERVER['REQUEST_URI']) ? dirname($_SERVER['REQUEST_URI']) : '';
|
||||
if (isset($_SERVER['REQUEST_URI'])) {
|
||||
$path = $_SERVER['REQUEST_URI'];
|
||||
$url .= substr($path, -1) === '/' ? substr($path, 0, -1) : dirname($path);
|
||||
}
|
||||
} else {
|
||||
$url = rtrim($url, '/\\') . $baseUrlSuffix;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user