mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-21 16:22:20 +02:00
save dashboard controller
This commit is contained in:
@@ -91,7 +91,7 @@ class PropertyTypeService
|
||||
*/
|
||||
private function SanitizeId(string $sId): string
|
||||
{
|
||||
$sFilteredId = preg_replace('/[^0-9a-zA-Z_]/', '', $sId);
|
||||
$sFilteredId = preg_replace('/[^0-9a-zA-Z_\-]/', '', $sId);
|
||||
if (strlen($sFilteredId) === 0 || $sFilteredId !== $sId) {
|
||||
throw new FormBlockException('Malformed name for block: '.json_encode($sId));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user