From 9bbae5cc23656304f0386e0ab7d2372fa1b6e370 Mon Sep 17 00:00:00 2001 From: Riccardo Di Dato Date: Mon, 4 Apr 2016 13:37:13 +0200 Subject: [PATCH] Inserita protezione di base per mongo injection --- private/lib/gui/PostHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/private/lib/gui/PostHandler.php b/private/lib/gui/PostHandler.php index ff89ba0..825f35d 100644 --- a/private/lib/gui/PostHandler.php +++ b/private/lib/gui/PostHandler.php @@ -5,7 +5,7 @@ class PostHandler { public static function get($name,$strict = false){ $rval = null; if (array_key_exists($name,$_POST)){ - $rval = $_POST[$name]; + $rval = strval($_POST[$name]); // if ($strict){ // $rval = $_POST[$name]; // }