Success

User tests: Successful: Unsuccessful:

avatar Bakual
Bakual
4 Jun 2013

Removing an unneeded eval() call in the countModules function.

Since it's the only place Joomla uses an eval() call, removing it would allow to disable eval() on server level for added security.

Tracker:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=31081

avatar Bakual Bakual - open - 4 Jun 2013
avatar Bakual Bakual - close - 4 Jun 2013
avatar Bakual
Bakual - comment - 4 Jun 2013

Aww, forget it.
The eval() is there to support 'and' or 'or' operators. I think there should be a better (and saver) way than to use eval but need to think about it.

avatar Bakual Bakual - head_ref_deleted - 4 Jun 2013
avatar realityking
realityking - comment - 4 Jun 2013

We've deprecated that behavior in the platform for this very reason but it hasn'tbenn merged to the CMS. I suggest doing that.

avatar Bakual
Bakual - comment - 4 Jun 2013

I see. Deprecate operators and removing it (with Joomla 4.x) would indeed be the best way, as it's very easy to make the same checks within the template.

Add a Comment

Login with GitHub to post a comment