From 46d0e40fdffe21cd86a6a310a5c380eb070765c8 Mon Sep 17 00:00:00 2001
From: pataquets
-
-
-
+
+
+
From 451caf7b7c1869560619a8b18fc560fcc5d49fd2 Mon Sep 17 00:00:00 2001
From: toughIQ
Date: Thu, 24 Jan 2019 20:24:46 +0000
Subject: [PATCH 16/97] Fix PHP 5.3 compatibility
Fixes #140
---
includes/login.inc.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/includes/login.inc.php b/includes/login.inc.php
index f1abce6..75ed28d 100644
--- a/includes/login.inc.php
+++ b/includes/login.inc.php
@@ -80,12 +80,12 @@ function authCookie()
// Using SHA512 because MD5, SHA1 are both now considered broken
return hash(
'sha512',
- implode(':', [
+ implode(':', array(
$username,
$_SERVER['HTTP_USER_AGENT'],
$_SERVER['REMOTE_ADDR'],
$config['login'][$username]['password'],
- ])
+ ))
);
};
From 6ced4d2aba817c6e8ae1665298e78c60a1f234a3 Mon Sep 17 00:00:00 2001
From: Erik Dubbelboer
-> (-1 to remove the TTL) +> (-1 to remove the TTL)
From 2d977bce2a3225bacf9ab04ba0ca27c5d58324ab Mon Sep 17 00:00:00 2001 From: Wildan M