]> git.p6c8.net - jirafeau_project.git/blobdiff - lib/functions.php
Merge branch 'multi-http-admins' into next-release
[jirafeau_project.git] / lib / functions.php
index 3883173cbd29ac1dcfcaaed612f0ea2eecb00261..b6672fb0ab12e683c6be14c1e6a4b859c1041304 100644 (file)
@@ -1315,6 +1315,8 @@ function jirafeau_decrypt_file_legacy($fp_src, $fp_dst, $k)
     $crypt_key = $k;
     $hash_key = md5($crypt_key);
     $iv = jirafeau_crypt_create_iv($hash_key, mcrypt_enc_get_iv_size($m));
+    /* Init module. */
+    mcrypt_generic_init($m, $hash_key, $iv);
     /* Decrypt file. */
     $r = fopen($fp_src, 'r');
     $w = fopen($fp_dst, 'c');

patrick-canterino.de