From: Marcin Haba Date: Thu, 7 Sep 2023 06:58:32 +0000 (+0200) Subject: baculum: Improve extended name validator X-Git-Tag: Beta-15.0.0~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a80f9a33b648100782d606b279467200cfa7513;p=thirdparty%2Fbacula.git baculum: Improve extended name validator --- diff --git a/gui/baculum/protected/Common/Modules/Miscellaneous.php b/gui/baculum/protected/Common/Modules/Miscellaneous.php index d6ad5c763..39d873fb0 100644 --- a/gui/baculum/protected/Common/Modules/Miscellaneous.php +++ b/gui/baculum/protected/Common/Modules/Miscellaneous.php @@ -231,7 +231,7 @@ class Miscellaneous extends TModule { } public function isValidNameExt($name_ext) { - return (preg_match('/^[\w:\.\-\s\*=@]{1,127}$/', $name_ext) === 1); + return (preg_match('/^[\w:\.\-\s\*=@:]{1,127}$/', $name_ext) === 1); } public function isValidState($state) {