Block access if no Hash is supplied
authorSeamus Lee <seamuslee001@gmail.com>
Tue, 22 Jan 2019 19:11:45 +0000 (06:11 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Fri, 22 Feb 2019 00:14:59 +0000 (11:14 +1100)
CRM/Core/Page/File.php

index 9b11dde3bce7fc514074ea71b8c730198a755ec4..06ec2da66ef2bd888964858afd4f19414510487a 100644 (file)
@@ -92,9 +92,6 @@ class CRM_Core_Page_File extends CRM_Core_Page {
    * @return bool
    */
   public static function validateFileHash($hash, $eid, $fid) {
-    if (empty($hash)) {
-      return TRUE;
-    }
     $testHash = CRM_Core_BAO_File::generateFileHash($eid, $fid);
     if ($testHash == $hash) {
       return TRUE;