fix url parsing
This commit is contained in:
parent
1290a5b058
commit
618712fe72
1 changed files with 3 additions and 1 deletions
|
@ -7,7 +7,9 @@ define('ROOT_PAGE', 1);
|
|||
|
||||
require_once './LBRY.class.php';
|
||||
|
||||
$name = ltrim(urldecode($_SERVER['REQUEST_URI']), '/');
|
||||
$urlParts = parse_url($_SERVER['REQUEST_URI']);
|
||||
$name = ltrim($urlParts['path'], '/');
|
||||
|
||||
if ($name)
|
||||
{
|
||||
include './image.php';
|
||||
|
|
Loading…
Reference in a new issue