From: Marcin Haba Date: Sat, 30 Jun 2018 16:02:18 +0000 (+0200) Subject: baculum: Fix path validator for UTF-8 characters X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=877ee85c4d6c9bcbafb2cad740a93ff0ffea297a;p=bacula%2Fbacula baculum: Fix path validator for UTF-8 characters --- diff --git a/gui/baculum/protected/Common/Class/Miscellaneous.php b/gui/baculum/protected/Common/Class/Miscellaneous.php index eedac61094..dbf56dedc3 100644 --- a/gui/baculum/protected/Common/Class/Miscellaneous.php +++ b/gui/baculum/protected/Common/Class/Miscellaneous.php @@ -202,7 +202,7 @@ class Miscellaneous extends TModule { } public function isValidPath($path) { - return (preg_match('/^[\p{L}\p{N}\p{Z}\[\]\(\)\-\+\/\\\:\.#~_,{}!]{0,1000}$/', $path) === 1); + return (preg_match('/^[\p{L}\p{N}\p{Z}\[\]\(\)\-\+\/\\\:\.#~_,{}!]{0,10000}$/u', $path) === 1); } public function isValidReplace($replace) {