]> git.p6c8.net - jirafeau/jirafeau.git/commitdiff
pat pat - ci linting
authorBlackeye <gitlab@blackeyeprojects.de>
Wed, 4 Feb 2026 00:47:30 +0000 (01:47 +0100)
committerBlackeye <gitlab@blackeyeprojects.de>
Wed, 4 Feb 2026 00:47:30 +0000 (01:47 +0100)
f.php
lib/functions.php
script.php

diff --git a/f.php b/f.php
index 92736f72e92133978c3b735f24b04812af5b6bf0..f0a3d12d5b5b2347c6af3473ccebb43560a7954f 100644 (file)
--- a/f.php
+++ b/f.php
@@ -171,7 +171,7 @@ if (!empty($link['key'])) {
         require(JIRAFEAU_ROOT.'lib/template/footer.php');
         exit;
     } else {
         require(JIRAFEAU_ROOT.'lib/template/footer.php');
         exit;
     } else {
-        if (hash_equals($link['key'], hash('sha256',$_POST['key']))) {
+        if (hash_equals($link['key'], hash('sha256', $_POST['key']))) {
             $password_challenged = true;
         } else {
             sleep(2);
             $password_challenged = true;
         } else {
             sleep(2);
index f55da7bf5415b018caeba8c7575e4a3f6abe1a14..38115442d237ff843eb3a9930dcd35ef897d7c6e 100644 (file)
@@ -544,7 +544,7 @@ function jirafeau_add_file($file, $one_time_download, $key, $time, $ip, $crypt,
     /* hash password or empty. */
     $password = '';
     if (!empty($key)) {
     /* hash password or empty. */
     $password = '';
     if (!empty($key)) {
-        $password = hash('sha256',$key);
+        $password = hash('sha256', $key);
     }
 
     /* create link file */
     }
 
     /* create link file */
@@ -1091,7 +1091,7 @@ function jirafeau_async_init($filename, $type, $one_time, $key, $time, $ip)
     /* sha256 password or empty */
     $password = '';
     if (!empty($key)) {
     /* sha256 password or empty */
     $password = '';
     if (!empty($key)) {
-        $password = hash('sha256',$key);
+        $password = hash('sha256', $key);
     }
 
     /* Store information. */
     }
 
     /* Store information. */
@@ -1379,7 +1379,7 @@ function jirafeau_decrypt_file_legacy($fp_src, $fp_dst, $k)
     $m = mcrypt_module_open('rijndael-256', '', 'ofb', '');
     /* Extract key and iv. */
     $crypt_key = $k;
     $m = mcrypt_module_open('rijndael-256', '', 'ofb', '');
     /* Extract key and iv. */
     $crypt_key = $k;
-    $hash_key = hash('sha256',$crypt_key);
+    $hash_key = hash('sha256', $crypt_key);
     $iv = jirafeau_crypt_create_iv($hash_key, mcrypt_enc_get_iv_size($m));
     /* Init module. */
     mcrypt_generic_init($m, $hash_key, $iv);
     $iv = jirafeau_crypt_create_iv($hash_key, mcrypt_enc_get_iv_size($m));
     /* Init module. */
     mcrypt_generic_init($m, $hash_key, $iv);
@@ -1642,7 +1642,7 @@ function jirafeau_escape($string)
 function jirafeau_admin_session_start()
 {
     $_SESSION['admin_auth'] = true;
 function jirafeau_admin_session_start()
 {
     $_SESSION['admin_auth'] = true;
-    $_SESSION['admin_csrf'] = hash('sha256',uniqid(mt_rand(), true));
+    $_SESSION['admin_csrf'] = hash('sha256', uniqid(mt_rand(), true));
 }
 
 function jirafeau_session_end()
 }
 
 function jirafeau_session_end()
index d28bc02f2dd3f7cb6bad73528a9409f2cb37b821..301ebe8cb088e83e6d9774bdc852d36811e10c68 100644 (file)
@@ -183,7 +183,7 @@ if (isset($_FILES['file']) && is_writable(VAR_FILES)
         echo 'Error 9';
         exit;
     }
         echo 'Error 9';
         exit;
     }
-    if (strlen($link['key']) > 0 && hash('sha256',$key) != $link['key']) {
+    if (strlen($link['key']) > 0 && hash('sha256', $key) != $link['key']) {
         sleep(2);
         echo 'Error 10';
         exit;
         sleep(2);
         echo 'Error 10';
         exit;

patrick-canterino.de