From 8f9ec1f8395a102f2ccf81aa861f08a4d83adeeb Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Thu, 26 Sep 2019 19:37:55 +0200 Subject: [PATCH] =?utf8?q?baculum:=20Fix=20support=20for=20UTF-8=20currenc?= =?utf8?q?y=20symbols=20in=20paths=20-=20reported=20by=20Fr=C3=A9d=C3=A9ri?= =?utf8?q?c=20F.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- 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 e3654396a..a83cbeaa0 100644 --- a/gui/baculum/protected/Common/Class/Miscellaneous.php +++ b/gui/baculum/protected/Common/Class/Miscellaneous.php @@ -235,7 +235,7 @@ class Miscellaneous extends TModule { } public function isValidPath($path) { - return (preg_match('/^[\p{L}\p{N}\p{Z}\[\]\-\'\/\\(){}:.#~_,+!$]{0,10000}$/u', $path) === 1); + return (preg_match('/^[\p{L}\p{N}\p{Z}\p{Sc}\[\]\-\'\/\\(){}:.#~_,+!$]{0,10000}$/u', $path) === 1); } public function isValidReplace($replace) { -- 2.47.3