just compare paths
authorMichael Wallner <mike@php.net>
Wed, 18 Dec 2013 13:38:25 +0000 (14:38 +0100)
committerMichael Wallner <mike@php.net>
Wed, 18 Dec 2013 13:38:25 +0000 (14:38 +0100)
mdref/Action.php

index 462e35b56e0e4810cbee75aa1e6ddeb382abe990..18f60691b21b0d96a1176f43ac760509355b4c70 100644 (file)
@@ -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'");
                }
        }