aboutsummaryrefslogtreecommitdiffstats
path: root/main/phpldapadmin/phpldapadmin-1.2.3_changed-password_hash-to-pla_password_hash.patch
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2014-09-15 09:07:55 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2014-09-15 09:08:05 +0000
commitb7c7f3a32c989f109b8015cdecf58c3061e0b260 (patch)
tree03615b7c4c7904e489515b23bdc4e57382a49b41 /main/phpldapadmin/phpldapadmin-1.2.3_changed-password_hash-to-pla_password_hash.patch
parent66661c529f386b22705676ce1ef54ed3049fffe4 (diff)
downloadaports-b7c7f3a32c989f109b8015cdecf58c3061e0b260.tar.bz2
aports-b7c7f3a32c989f109b8015cdecf58c3061e0b260.tar.xz
main/phpldapadmin: fixes for php-5.5.16
Diffstat (limited to 'main/phpldapadmin/phpldapadmin-1.2.3_changed-password_hash-to-pla_password_hash.patch')
-rw-r--r--main/phpldapadmin/phpldapadmin-1.2.3_changed-password_hash-to-pla_password_hash.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/main/phpldapadmin/phpldapadmin-1.2.3_changed-password_hash-to-pla_password_hash.patch b/main/phpldapadmin/phpldapadmin-1.2.3_changed-password_hash-to-pla_password_hash.patch
new file mode 100644
index 0000000000..1408c13184
--- /dev/null
+++ b/main/phpldapadmin/phpldapadmin-1.2.3_changed-password_hash-to-pla_password_hash.patch
@@ -0,0 +1,49 @@
+From e673df3ba8d690afbbba28f9ec368e475933efe8 Mon Sep 17 00:00:00 2001
+From: Mohamad Elrashidin Bin Sajeli <archayl@gmail.com>
+Date: Thu, 8 May 2014 20:22:30 +0800
+Subject: [PATCH] Changed password_hash to pla_password_hash
+
+---
+ lib/functions.php | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/lib/functions.php b/lib/functions.php
+index 56d8bf3..ad9ee9f 100644
+--- a/lib/functions.php
++++ b/lib/functions.php
+@@ -2127,7 +2127,7 @@ function password_types() {
+ * crypt, ext_des, md5crypt, blowfish, md5, sha, smd5, ssha, sha512, or clear.
+ * @return string The hashed password.
+ */
+-function password_hash($password_clear,$enc_type) {
++function pla_password_hash($password_clear,$enc_type) {
+ if (DEBUG_ENABLED && (($fargs=func_get_args())||$fargs='NOARGS'))
+ debug_log('Entered (%%)',1,0,__FILE__,__LINE__,__METHOD__,$fargs);
+
+@@ -2318,7 +2318,7 @@ function password_check($cryptedpassword,$plainpassword,$attribute='userpassword
+
+ # SHA crypted passwords
+ case 'sha':
+- if (strcasecmp(password_hash($plainpassword,'sha'),'{SHA}'.$cryptedpassword) == 0)
++ if (strcasecmp(pla_password_hash($plainpassword,'sha'),'{SHA}'.$cryptedpassword) == 0)
+ return true;
+ else
+ return false;
+@@ -2327,7 +2327,7 @@ function password_check($cryptedpassword,$plainpassword,$attribute='userpassword
+
+ # MD5 crypted passwords
+ case 'md5':
+- if( strcasecmp(password_hash($plainpassword,'md5'),'{MD5}'.$cryptedpassword) == 0)
++ if( strcasecmp(pla_password_hash($plainpassword,'md5'),'{MD5}'.$cryptedpassword) == 0)
+ return true;
+ else
+ return false;
+@@ -2392,7 +2392,7 @@ function password_check($cryptedpassword,$plainpassword,$attribute='userpassword
+
+ # SHA512 crypted passwords
+ case 'sha512':
+- if (strcasecmp(password_hash($plainpassword,'sha512'),'{SHA512}'.$cryptedpassword) == 0)
++ if (strcasecmp(pla_password_hash($plainpassword,'sha512'),'{SHA512}'.$cryptedpassword) == 0)
+ return true;
+ else
+ return false;