save dashboard controller

This commit is contained in:
Eric Espie
2026-01-14 16:57:19 +01:00
parent 0bc6f5d56a
commit 15c8f5903b
4 changed files with 41 additions and 24 deletions

View File

@@ -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));
}