From: Michael Wallner Date: Wed, 18 Dec 2013 13:38:25 +0000 (+0100) Subject: just compare paths X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=d5aa9488b908561542745f7e2a1f6061b63b181a;p=mdref%2Fmdref just compare paths --- diff --git a/mdref/Action.php b/mdref/Action.php index 462e35b..18f6069 100644 --- a/mdref/Action.php +++ b/mdref/Action.php @@ -32,7 +32,7 @@ class Action extends Observer $path = $finder->find($url, ""); if ($path->isFile("")) { $payload->html = $path->toHtml(); - } else if (strcmp($url, $this->baseUrl)) { + } else if (strcmp($url->path, $this->baseUrl->path)) { throw new \http\Controller\Exception(404, "Could not find '$path'"); } }