From 5ab51d66b77c293ad05cbe39970dab99eb1665e3 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 11 Apr 2018 20:57:36 +0200 Subject: [PATCH] Fix #152 --- Security/PhpCode.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } }