Page 1 of 1

Error in viewmail.php

Posted: 08 May 2017 14:14
by Odon Garma
Line 184 and Line 235:

Code: Select all

($message->virusinfected === 0 && $message->nameinfected === 0 && $message->otherinfected === 0) ||
$_SESSION['user_type'] === 'A' ||
(defined('DOMAINADMIN_CAN_SEE_DANGEROUS_CONTENTS') && true === DOMAINADMIN_CAN_SEE_DANGEROUS_CONTENTS && $_SESSION['user_type'] === 'D')

virusinfected is Type String, so === 0 is always false

shoud be ($message->virusinfected === '0' && ....

The bad result is: normal users can not release spam messages

This bug is since 3.0.1.9 and still in 3.0.2.2

Greetz

Re: Error in viewmail.php

Posted: 14 May 2017 12:41
by shawniverson