From c3f311b928d566caaa1f2a311da424590dc899ac Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sun, 19 Apr 2015 09:30:35 -0700 Subject: [PATCH] more strict matching of routes --- controllers/controllers.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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+' +));