? Success
Pull Request for # 11190

User tests: Successful: Unsuccessful:

avatar OctavianC
OctavianC
19 Jul 2016

Pull Request for Issue #11190 .

Summary of Changes

The $idField variable is never used throughout the code, seems to be an attempt to sanitize the $id. I've added some more filtering to produce a usable id. Should work for multiple editors as well.

Testing Instructions

Testing instructions can be found in the issue description.

avatar OctavianC OctavianC - open - 19 Jul 2016
avatar OctavianC OctavianC - change - 19 Jul 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Jul 2016
Labels Added: ?
avatar dgt41
dgt41 - comment - 19 Jul 2016

this should be faster:

$id  = str_replace('[', '_', substr(trim($name), 0, -1));
avatar OctavianC
OctavianC - comment - 19 Jul 2016

Should be faster, but it doesn't cover all options:

  • It extracts the last character, what if my $name is simply editor?
  • It doesn't take into account nested names
  • Other wrong characters would be allowed
avatar dgt41
dgt41 - comment - 19 Jul 2016

Agree!

avatar brianteeman brianteeman - change - 19 Jul 2016
Category Plugins
avatar brianteeman brianteeman - change - 19 Jul 2016
Rel_Number 0 11190
Relation Type Pull Request for
avatar dgt41 dgt41 - test_item - 19 Jul 2016 - Tested successfully
avatar dgt41
dgt41 - comment - 19 Jul 2016

I have tested this item successfully on 9f65523

tested with class some[name]


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11192.

avatar hardiktailored hardiktailored - test_item - 30 Jul 2016 - Tested successfully
avatar hardiktailored
hardiktailored - comment - 30 Jul 2016

I have tested this item successfully on 9f65523

Before, using code given in #11190, by default textarea was visible and after applying patch by default TinyMCE gets visible.
Square-brackets([]) replaced with the underscores(_) in name so found no problem in that also.
Tested multiple TinyMCE editors on the same page.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11192.

avatar dgt41 dgt41 - change - 30 Jul 2016
Status Pending Ready to Commit
avatar dgt41
dgt41 - comment - 30 Jul 2016

RTC @wilsonge can you merge this one for 3.6.1 ?

avatar joomla-cms-bot joomla-cms-bot - change - 30 Jul 2016
Category Plugins Plugins Front End
avatar joomla-cms-bot joomla-cms-bot - change - 30 Jul 2016
Labels Added: ?
avatar rdeutz rdeutz - change - 13 Aug 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-08-13 17:32:21
Closed_By rdeutz
avatar rdeutz rdeutz - close - 13 Aug 2016
avatar rdeutz rdeutz - merge - 13 Aug 2016
avatar joomla-cms-bot joomla-cms-bot - close - 13 Aug 2016
avatar joomla-cms-bot joomla-cms-bot - change - 13 Aug 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment