Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use setlocale() for escapeshellarg() #151

Open
AutopilotNN opened this issue Sep 20, 2017 · 1 comment
Open

use setlocale() for escapeshellarg() #151

AutopilotNN opened this issue Sep 20, 2017 · 1 comment

Comments

@AutopilotNN
Copy link

AutopilotNN commented Sep 20, 2017

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
Copy link
Author

And functions.inc.php, line 37 :

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant