CGP icon indicating copy to clipboard operation
CGP copied to clipboard

use setlocale() for escapeshellarg()

Open AutopilotNN opened this issue 7 years ago • 1 comments

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");

AutopilotNN avatar Sep 20 '17 11:09 AutopilotNN

And functions.inc.php, line 37 :

			if (!preg_match('/^[\p{L}-.: ]+$/u', $value)) {

AutopilotNN avatar Sep 20 '17 12:09 AutopilotNN