Elfinder: nameAccepted() broke outputJson() sometimes

Created on 5 Feb 2020  Â·  5Comments  Â·  Source: Studio-42/elFinder

I found that function nameAccepted() check for names and return errors on json_encode $name. But other users of nameAccepted write this error and $name of file to errors array, then try to json_encode it. As result nothing output in outputJSON().

'warning' => array ( 0 => 'errSave', 1 => '����������', ),
https://github.com/Studio-42/elFinder/blob/a35eabc9eb93cc68b764a0b9f846a6acd26ef392/php/elFinderConnector.class.php#L355

connector bug

All 5 comments

@TechCatOther Does this issue occur when unpacking the archive? If so, this problem may occur if the file name in the archive is not UTF-8. Some measures may be required.

Yes. It's happend when extract files from archive. Users got strange message about JSON, but all files with correct names already extracted.

Thanks a lot. Now extracting correct.

@TechCatOther Thank you for your verifying! I merged it to master branch.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CodeLyokoXtEAM picture CodeLyokoXtEAM  Â·  3Comments

Jeffery4000 picture Jeffery4000  Â·  4Comments

mschlosser22 picture mschlosser22  Â·  4Comments

yinmingming picture yinmingming  Â·  3Comments

shiyee picture shiyee  Â·  3Comments