We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f0588a commit aba8fa1Copy full SHA for aba8fa1
web/index.php
@@ -45,7 +45,9 @@
45
die();
46
}
47
$app['images']->serve($width, $height, '', $request);
48
-});
+})
49
+->assert('width', '\d+');
50
+->assert('height', '\d+');
51
52
$app->get('/{width}', function($width) use($app) {
53
$app->redirect("/$width/$width", 303);
@@ -59,8 +61,8 @@
59
61
60
62
$app['images']->serve($width, $height, $person, $request);
63
})
-->assert('width', '[\d]*')
-->assert('height', '[\d]*');
64
+->assert('width', '\d+')
65
66
67
// Attribution
68
$app->get('/attribution', function() use($app) {
0 commit comments