1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
From: Guido Berhoerster <guido@berhoerster.name>
Subject: Add compatibility with PHP 8
Abstract:
crypt() reuires a salt in PHP 8.
Forwarded: https://salsa.debian.org/debian-edu/upstream/slbackup-php/-/commit/c2fb434c4983b78972d487cceda331456b3a44a8
--- 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) ;
}
|