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)
{
$match = array();
if (preg_match('#^/p/(\w+)/#', $request->query, $match)) {
if (preg_match('#^/p/([\-\w]+)/#', $request->query, $match)) {
try {
$request->project = IDF_Project::getOr404($match[1]);
} catch (Pluf_HTTP_Error404 $e) {