Really fixed the project name with hyphen (-).
This commit is contained in:
parent
7dabb32e25
commit
61b109d75e
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user