From 877ee85c4d6c9bcbafb2cad740a93ff0ffea297a Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Sat, 30 Jun 2018 18:02:18 +0200 Subject: [PATCH] baculum: Fix path validator for UTF-8 characters --- gui/baculum/protected/Common/Class/Miscellaneous.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5