aboutsummaryrefslogtreecommitdiff
path: root/lib/Minz/Request.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Minz/Request.php')
-rw-r--r--lib/Minz/Request.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Minz/Request.php b/lib/Minz/Request.php
index 9bf1ff4fb..662dc6db9 100644
--- a/lib/Minz/Request.php
+++ b/lib/Minz/Request.php
@@ -162,11 +162,11 @@ class Minz_Request {
* Setteurs
*/
public static function _controllerName(string $controller_name): void {
- self::$controller_name = $controller_name;
+ self::$controller_name = ctype_alnum($controller_name) ? $controller_name : '';
}
public static function _actionName(string $action_name): void {
- self::$action_name = $action_name;
+ self::$action_name = ctype_alnum($action_name) ? $action_name : '';
}
/** @param array<string,string> $params */
@@ -187,6 +187,7 @@ class Minz_Request {
* Initialise la Request
*/
public static function init(): void {
+ self::_params($_GET);
self::initJSON();
}