-
Bug
-
Resolution: Fixed
-
Minor
-
3.4.1, 3.11.4
-
MOODLE_311_STABLE, MOODLE_34_STABLE
-
MOODLE_311_STABLE
-
MDL-61671-master -
The certificate checking in the admin mobile settings report (admin/settings.php?section=mobilesettings) is not checking if the properties actually exist.
As a result warnings like "It seems that the HTTPS certificate for the site has expired." are shown even with a valid certificate .
A good sample is the start and end date:
if (strtotime($cert['Start date']) > $timenow)
if (strtotime($cert['Expire date']) < $timenow)
If I change this code to
if (strtotime($cert['Start Date']) > $timenow)
if (strtotime($cert['Expire Date']) < $timenow)
my warnings are gone.
Every property should be checked using the property_exists function.
- is duplicated by
-
MDL-71348 Case sensitive use in cert info for Mobile Settings
- Closed