fix url parsing

This commit is contained in:
Jeremy Kauffman 2017-04-01 10:52:25 -04:00
parent 1290a5b058
commit 618712fe72

View file

@ -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';