?
avatar MarkRS-UK
MarkRS-UK
11 Feb 2015

I think this is a simply "wasteful" bug rather than actually causing an application failure of any kind.

Problem

libraries/joomla/application/route.php, line 58.
_
if (!is_array($url) && (strpos($url, '&') !== 0) && (strpos($url, 'index.php') !== 0))_

the latter two checks fail if either item checked for is at the beginning of the string checked.

This is perhaps unlikely for "&", but almost guaranteed for "index.php".

The router is always re-executed because of this,even if it's not required.

Solution

Change the line to

if (!is_array($url) && !(strpos($url, '&') === false) && !(strpos($url, 'index.php') === false))

How many other places in the codebase are like this?

avatar MarkRS-UK MarkRS-UK - open - 11 Feb 2015
avatar brianteeman brianteeman - change - 11 Feb 2015
Labels Added: ?
avatar MarkRS-UK
MarkRS-UK - comment - 11 Feb 2015

On further conversation it appears that this solution is not correct or helpful.
Can this issue item be removed?


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6056.
avatar Bakual
Bakual - comment - 11 Feb 2015

Closing as requested.

avatar Bakual Bakual - change - 11 Feb 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-02-11 20:50:07
avatar Bakual Bakual - close - 11 Feb 2015

Add a Comment

Login with GitHub to post a comment