1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
From: Guido Berhoerster <guido@berhoerster.name>
Subject: Add compatibility with PHP 8
crypt() reuires a salt in PHP 8.
--- slbackup-php.orig/src/index.php
+++ slbackup-php/src/index.php
@@ -695,7 +695,7 @@ if (empty ($config)) {
}
if (empty($encrypt) || empty ($xorstring)) {
- $encrypt = crypt(strrev(sprintf (gettimeofday (true)))) ;
+ $encrypt = crypt('', strrev(sprintf (gettimeofday (true)))) ;
$_SESSION['encrypt'] = $encrypt ;
$xorstring = xorstring ($encrypt, $passwd) ;
}
|