? Success
Related to # 11433

User tests: Successful: Unsuccessful:

avatar AppChecker
AppChecker
26 Jan 2016

1) It looks strange that $htmlPath is checked twice. It seems that another variable should be checked instead, possibly $overridePath.

2)
Both parts of ternary operation are identical.
return ($show_encrypt) ? '{SHA256}' . $encrypted : '{SHA256}' . $encrypted;

It seems that it should be like this:
return ($show_encrypt) ? '{MD5}' . $encrypted : $encrypted;

Possible defect was found by AppChecker static analyzer (http://cnpo.ru/en/solutions/appchecker.php).

avatar AppChecker AppChecker - open - 26 Jan 2016
avatar AppChecker AppChecker - change - 26 Jan 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 26 Jan 2016
Labels Added: ?
avatar AppChecker AppChecker - change - 26 Jan 2016
Title
fix: $htmlPath is checked twice
2 suspicious code fragments
avatar wilsonge
wilsonge - comment - 26 Jan 2016

First one seems like a sensible change. The second one (despite being a bug) I'm tended towards leaving "open". the sha hashes were only used in a very small number of Joomla installs in a limited number of Joomla 3.2 versions. Fixing that bug might well do more harm than good.

avatar brianteeman brianteeman - change - 13 Apr 2016
Category Libraries
avatar roland-d
roland-d - comment - 1 Aug 2016

Yeah, I agree with @wilsonge here. Could you update the pull request please?


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

avatar brianteeman
brianteeman - comment - 1 Aug 2016

It's six months since @wilsonge made his comment so it's highly unlikely @AppChecker is going to do that. Best to do a new pr yourself. My 2c

avatar joomla-cms-bot joomla-cms-bot - change - 4 Aug 2016
Category Libraries Administration Components Libraries
avatar roland-d roland-d - change - 4 Aug 2016
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2016-08-04 07:22:30
Closed_By roland-d
Rel_Number 0 11433
Relation Type Related to
avatar roland-d roland-d - close - 4 Aug 2016
avatar roland-d
roland-d - comment - 4 Aug 2016

I am closing this pull request as we have a replacement at #11433 Thank you for your contribution.


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

Add a Comment

Login with GitHub to post a comment