CGP
CGP copied to clipboard
use setlocale() for escapeshellarg()
As a result of work of a script in exec plug-in I have received "pi" in utf-8 encoding. After application of escapeshellarg() the way to base has been broken. I had to set a locale in config.php: setlocale(LC_CTYPE, "ru_RU.UTF-8");
And functions.inc.php, line 37 :
if (!preg_match('/^[\p{L}-.: ]+$/u', $value)) {