diff --git a/controllers/controllers.php b/controllers/controllers.php index 11dced3..c47b4b8 100644 --- a/controllers/controllers.php +++ b/controllers/controllers.php @@ -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+' +));