Make root '/' the default request

pull/11/head
Mike Cao 14 years ago
parent 509b832377
commit dcca6551c5

@ -51,8 +51,13 @@ class Request {
$this->url = substr($this->url, strlen($this->base)); $this->url = substr($this->url, strlen($this->base));
} }
if (empty($this->url)) {
$this->url = '/';
}
else {
$this->query = self::parseQuery($this->url); $this->query = self::parseQuery($this->url);
} }
}
/** /**
* Parse query parameters from a URL. * Parse query parameters from a URL.

Loading…
Cancel
Save