Browse Source

more strict matching of routes

pull/10/head
Aaron Parecki 9 years ago
parent
commit
c3f311b928
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      controllers/controllers.php

+ 4
- 1
controllers/controllers.php View File

@ -280,7 +280,10 @@ $app->get('/:domain/:entry', function($domain, $entry_id) use($app) {
'user' => $user
));
$app->response()->body($html);
});
})->conditions(array(
'domain' => '[a-zA-Z0-9\.-]+\.[a-z]+',
'entry' => '\d+'
));

Loading…
Cancel
Save