I use fileeditor extension in backend of website. Later I found some error in js code which was added from plugin, it was because fileeditor eat "+" symbols. I see there is
encodeURIComponent(content)
in JS file of plugin source which was fine, but next I found in controller actionPutContent() this line
urldecode($_POST['filecontent'])
and that was wrong, atleast in my configuration. Since $_POST content is allready come decoded (atleast in PHP 5) I just crop this line and use just
$_POST['filecontent']
.
Medicine is use
echo file_put_contents($file, $_POST['filecontent']);
instead of
echo file_put_contents($file, urldecode ($_POST['filecontent']));
in FileeditorController.php
actionPutContent()
.
p.s. I try to contact plugin author, but this forum doesn’t give me permission for that, even after he added me as a friend.