From: Marcin Haba Date: Thu, 26 Sep 2019 17:37:55 +0000 (+0200) Subject: baculum: Fix support for UTF-8 currency symbols in paths - reported by Frédéric F. X-Git-Tag: Release-9.6.0~125 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f9ec1f8395a102f2ccf81aa861f08a4d83adeeb;p=thirdparty%2Fbacula.git baculum: Fix support for UTF-8 currency symbols in paths - reported by Frédéric F. --- 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) {