Yii Framework Forum: Fileeditor Extension Bug - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Fileeditor Extension Bug Medicine for small bug in fileeditor. Rate Topic: -----

#1 User is offline   electroid 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 03-July 12

Posted 15 October 2012 - 09:45 AM

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.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users