? Pending

User tests: Successful: Unsuccessful:

avatar Quy
Quy
7 Jun 2020

Summary of Changes

escape handles single quote. No need to double escaping with addslashes.

Testing Instructions

Code review.
or
Add an article with the title Who's Online.
In list view, view page source.
Search for Edit Who\'s Online

Expected result

title="Edit Who's Online"

Actual result

title="Edit Who\'s Online">

avatar Quy Quy - open - 7 Jun 2020
avatar Quy Quy - change - 7 Jun 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 7 Jun 2020
Category Administration com_associations com_banners com_categories com_contact com_content com_fields com_languages com_menus com_modules com_newsfeeds com_plugins com_tags com_templates com_users com_workflow
avatar richard67
richard67 - comment - 7 Jun 2020

@Quy I found 2 places where there still is "escape(addslashes" when your PR is applied, both in modals:

  1. https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/components/com_categories/tmpl/categories/modal.php#L109
    <?php echo $this->escape(addslashes($item->title)); ?>
  2. https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/components/com_newsfeeds/tmpl/newsfeeds/modal.php#L100
    <?php echo $this->escape(addslashes($item->name)); ?>

Shouldn't these be changed, too? If so, will you do that with this PR or make a new one?

avatar Quy
Quy - comment - 7 Jun 2020

These 2 are different from the other ones so let's do it a different PR.

avatar richard67
richard67 - comment - 7 Jun 2020

OK.

avatar richard67 richard67 - test_item - 7 Jun 2020 - Tested successfully
avatar richard67
richard67 - comment - 7 Jun 2020

I have tested this item successfully on 1017bd5


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

avatar bonzani bonzani - test_item - 8 Jun 2020 - Tested successfully
avatar bonzani
bonzani - comment - 8 Jun 2020

I have tested this item successfully on 1017bd5


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

avatar alikon alikon - change - 8 Jun 2020
Status Pending Ready to Commit
avatar alikon
alikon - comment - 8 Jun 2020

RTC


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

avatar infograf768 infograf768 - close - 8 Jun 2020
avatar infograf768 infograf768 - merge - 8 Jun 2020
avatar infograf768 infograf768 - change - 8 Jun 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-06-08 06:54:05
Closed_By infograf768
Labels Added: ?
avatar infograf768
infograf768 - comment - 8 Jun 2020

Tks.

Add a Comment

Login with GitHub to post a comment