BUG – Don't work with cyrillic filenames
-
Plugin version latest atm – 1.1.10
If filename contains cyrillic symbols escapeshellarg strip them.
Fixed when i replace this line
$result = exec($command . ' ' . escapeshellarg($file));
with this$locale = setlocale(LC_ALL , 'bg_BG.utf8'); $result = exec($command . ' ' . escapeshellarg($file)); setlocale(LC_ALL , $locale);
I suggest to add an option for locale
if( isset(<localeoption>) ) { $locale = setlocale(LC_ALL , 'bg_BG.utf8'); } $result = exec($command . ' ' . escapeshellarg($file)); if( isset(<localeoption>) ) { setlocale(LC_ALL , $locale);
}`
- The topic ‘BUG – Don't work with cyrillic filenames’ is closed to new replies.