diff --git a/lib/exe/fetch.php b/lib/exe/fetch.php
index e8f189256ad7bb21d329a21d81998ba9cb3593b0..52e7ebe1e10e807f82fc6b76eded65d2963600f5 100644
--- a/lib/exe/fetch.php
+++ b/lib/exe/fetch.php
@@ -157,7 +157,7 @@ function checkFileStatus(&$media, &$file, $rev='') {
   //media to local file
   if(preg_match('#^(https?)://#i',$media)){
     //check hash
-    if(substr(md5(auth_cookiesalt().$media),0,6) != $INPUT->str('hash')){
+    if(substr(md5(auth_cookiesalt().$media),0,6) !== $INPUT->str('hash')){
       return array( 412, 'Precondition Failed');
     }
     //handle external images