DataObjects/Core_person.php
authorAlan Knowles <alan@roojs.com>
Thu, 17 Dec 2020 06:57:35 +0000 (14:57 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 17 Dec 2020 06:57:35 +0000 (14:57 +0800)
DataObjects/Core_person.php

index e8b1644..dbc3a5c 100644 (file)
@@ -564,6 +564,9 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject
     function validateAutoLogin($called)
     {
         $bits = explode("/",$called);
+        if (count($bits) < 4) {
+            return false;
+        }
         $hash = array_pop($bits);
         $time = array_pop($bits);
         $id = array_pop($bits);