RSS Feed/News \XF\Image\Manager::canResize has a bugged check

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
30,085
Points
823

Reputation:

PHP:

Code:
public function canResize($width, $height)
{
    if (!$this->maxResizePixels === null)
    {
        return true;
    }
I'm fairly sure this check is broken, as there is no value you can store into maxResizePixels that makes that branch return true.

Continue reading...
 
Status
Not open for further replies.
Top