diff --git a/vtlib/Vtiger/Functions.php b/vtlib/Vtiger/Functions.php index 59e6b352241ae09a8b62b9a974da02639e61a08c..0a3c5ab8aa88b7e77b40ad0ecdba69a1b86071ec 100644 --- a/vtlib/Vtiger/Functions.php +++ b/vtlib/Vtiger/Functions.php @@ -1591,7 +1591,8 @@ class Vtiger_Functions { * Request parameters and it's type. * @var type */ - protected static $type = array( + protected static $type = array( + 'module' => 'name', 'record' => 'id', 'src_record' => 'id', 'parent_id' => 'keyword', // id or ref-label in filter @@ -1628,6 +1629,8 @@ class Vtiger_Functions { switch ($type) { /* restricted set of (number / wsid / uuid format) for id */ case 'id' : $ok = (preg_match('/[^0-9xa-zA-Z\-]/', $value)) ? false : $ok; + break; + case 'name': $ok = preg_match('/[^a-zA-Z0-9]+/', $value) ? false : $ok; break; case 'email' : $ok = self::validateTypeEmail($value); break;