Really fixed the project name with hyphen (-).

This commit is contained in:
Loic d'Anterroches 2008-09-04 17:38:29 +02:00
parent 7dabb32e25
commit 61b109d75e

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) {