? Pending

User tests: Successful: Unsuccessful:

avatar mansour-gabteni
mansour-gabteni
18 May 2017

Pull Request for Issue # .

Summary of Changes

adding bestpractice for htmlspecialchars because this standard have $double_encode = true by default

Actual result

links are wihtout & in url

Documentation Changes Required

modules/mod_menu/tmpl/default_url.php

modules/mod_menu/tmpl/default_component.php

avatar mansour-gabteni mansour-gabteni - open - 18 May 2017
avatar mansour-gabteni mansour-gabteni - change - 18 May 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 May 2017
Category Modules Front End
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 18 May 2017

can you please Look at #16089 is this is a duplicate PR?

avatar mbabker
mbabker - comment - 18 May 2017

No, this PR basically puts back the htmlspecialchars() call and changes the parameters passed to it.

avatar Quy
Quy - comment - 18 May 2017

I have tested this item successfully on 0c7d62d


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

avatar Quy Quy - test_item - 18 May 2017 - Tested successfully
avatar infograf768
infograf768 - comment - 19 May 2017

@PhilETaylor
Is that OK for you?

avatar PhilETaylor
PhilETaylor - comment - 19 May 2017

@infograf768 well its another way to crack a nut - yes, it works.

Arguably the htmlspecialchars call should/could move moved into the ampReplace method and there be a flag in the method signature to run htmlspecialchars before the amp replacement preg_match, this would improve the ampReplace method and make it more powerful and reusable.

avatar PhilETaylor
PhilETaylor - comment - 19 May 2017

I have tested this item successfully on 0c7d62d

Doesn't seem to break the links which is good.


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

avatar PhilETaylor PhilETaylor - test_item - 19 May 2017 - Tested successfully
avatar infograf768 infograf768 - change - 19 May 2017
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 19 May 2017

2 good tests. rtc
@rdeutz good to merge


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

avatar PhilETaylor
PhilETaylor - comment - 19 May 2017

This should be 3.7.2 because it was broke in a change in 3.7.x a7705bf#diff-17d077571f8b5fe34c3d9f7fec9a6e44

avatar rdeutz rdeutz - change - 19 May 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-05-19 17:14:41
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 19 May 2017
avatar rdeutz rdeutz - merge - 19 May 2017

Add a Comment

Login with GitHub to post a comment