mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-12 06:48:41 +00:00
Fix #152
This commit is contained in:
parent
3ca7538977
commit
5ab51d66b7
|
|
@ -114,7 +114,7 @@ class PhpCode
|
||||||
/**
|
/**
|
||||||
* Validate file integrety
|
* Validate file integrety
|
||||||
*
|
*
|
||||||
* @param string $source Source code
|
* @param string $source Source code path
|
||||||
* @param string $hash Source hash
|
* @param string $hash Source hash
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
|
|
@ -123,6 +123,6 @@ class PhpCode
|
||||||
*/
|
*/
|
||||||
public static function validateFileIntegrity(string $source, string $hash) : bool
|
public static function validateFileIntegrity(string $source, string $hash) : bool
|
||||||
{
|
{
|
||||||
return true;
|
return md5_file($source) === $hash;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user