Really fixed the project name with hyphen (-).

dev
Loic d'Anterroches 2008-09-04 17:38:29 +02:00
parent 7dabb32e25
commit 61b109d75e
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class IDF_Middleware
function process_request(&$request) function process_request(&$request)
{ {
$match = array(); $match = array();
if (preg_match('#^/p/(\w+)/#', $request->query, $match)) { if (preg_match('#^/p/([\-\w]+)/#', $request->query, $match)) {
try { try {
$request->project = IDF_Project::getOr404($match[1]); $request->project = IDF_Project::getOr404($match[1]);
} catch (Pluf_HTTP_Error404 $e) { } catch (Pluf_HTTP_Error404 $e) {