diff --git a/Security/PhpCode.php b/Security/PhpCode.php index d6aaced57..d70bfb3e5 100644 --- a/Security/PhpCode.php +++ b/Security/PhpCode.php @@ -114,7 +114,7 @@ class PhpCode /** * Validate file integrety * - * @param string $source Source code + * @param string $source Source code path * @param string $hash Source hash * * @return bool @@ -123,6 +123,6 @@ class PhpCode */ public static function validateFileIntegrity(string $source, string $hash) : bool { - return true; + return md5_file($source) === $hash; } }