? ? Pending

User tests: Successful: Unsuccessful:

avatar tonypartridge
tonypartridge
24 Mar 2018

… of the path

Pull Request for Issue #19973 .

Summary of Changes

add a space beginning of the heystack,
str_pos seems to fail when begining with a / in the heystack so begin with a space followed by a /

Testing Instructions

Add:

/bogus/

to a url in your site, it should 404.

Now delete the 404, add /bogus/ to the exclusion list

Access the /bogus/ url again.

Expected result

404 and not add to the com_redirects

Actual result

404 and adds to the com_redirects.

avatar tonypartridge tonypartridge - open - 24 Mar 2018
avatar tonypartridge tonypartridge - change - 24 Mar 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 24 Mar 2018
Category Front End Plugins
avatar tonypartridge tonypartridge - change - 25 Mar 2018
Labels Added: ?
avatar ggppdk
ggppdk - comment - 25 Mar 2018

So the bug occurs when exclusion text is found at the very first position of the URL

that is when exclusion text is found at position 0 (zero), so existing check fails for this reason, because it considers zero return value .... as not found

@tonypartridge
you latest commit looks good, but can you also update "Summary of Changes" to explain the change, and describe why this bug occurs

avatar ReLater
ReLater - comment - 25 Mar 2018

I have tested this item successfully on 1cdf42f


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

avatar ReLater ReLater - test_item - 25 Mar 2018 - Tested successfully
avatar ggppdk
ggppdk - comment - 25 Mar 2018

I have tested this item successfully on 1cdf42f


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

avatar ggppdk ggppdk - test_item - 25 Mar 2018 - Tested successfully
avatar Quy Quy - change - 25 Mar 2018
Status Pending Ready to Commit
avatar Quy
Quy - comment - 25 Mar 2018

RTC


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

avatar mbabker mbabker - change - 25 Mar 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-03-25 15:01:13
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 25 Mar 2018
avatar mbabker mbabker - merge - 25 Mar 2018

Add a Comment

Login with GitHub to post a comment