]> git.p6c8.net - jirafeau/jirafeau.git/commitdiff
added comment for explanation why the hash needs a prefix
authorBlackeye <>
Wed, 28 Oct 2026 15:49:53 +0000 (16:49 +0100)
committerBlackeye <>
Wed, 28 Oct 2026 15:49:53 +0000 (16:49 +0100)
script.php

index 3fcb8591b3447054775e7ba3e35f6c9d5ad80353..da3785f445f7c25880c08b6a1db54a8375b7b922 100644 (file)
@@ -185,6 +185,7 @@ if (isset($_FILES['file']) && is_writable(VAR_FILES)
         echo 'Error 9';
         exit;
     }
+    // info: link contains the used hash as prefix 
     $file_hash = "[SHA256]" . hash('sha256', $key); 
     if (strlen($link['key']) > 0 &&  $file_hash != $link['key']) {
         sleep(2);

patrick-canterino.de