]> git.p6c8.net - jirafeau/jirafeau.git/blobdiff - script.php
Merge branch 'fix-onetime-download-stats' into 'next-release'
[jirafeau/jirafeau.git] / script.php
index cc37c41351569b620b3767f9c3309af1f6345b6a..2fc297f3412302a0933ef91d3d85f82560c49df9 100644 (file)
@@ -183,7 +183,7 @@ if (isset($_FILES['file']) && is_writable(VAR_FILES)
         echo 'Error 9';
         exit;
     }
-    if (strlen($link['key']) > 0 && md5($key) != $link['key']) {
+    if (strlen($link['key']) > 0 && hash('sha256', $key) != $link['key']) {
         sleep(2);
         echo 'Error 10';
         exit;

patrick-canterino.de