upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / phpldapadmin / trunk / disable-mcrypt.patch
blob8bc4e7b5fc54bce9f62072c90c6c011a2504083f
1 diff -wbBur phpldapadmin-1.2.3/lib/functions.php phpldapadmin-1.2.3.my/lib/functions.php
2 --- phpldapadmin-1.2.3/lib/functions.php 2012-10-01 10:54:14.000000000 +0400
3 +++ phpldapadmin-1.2.3.my/lib/functions.php 2017-02-02 20:02:14.424245233 +0300
4 @@ -745,6 +745,7 @@
5 if (! trim($secret))
6 return $data;
8 +/*
9 if (function_exists('mcrypt_module_open') && ! empty($data)) {
10 $td = mcrypt_module_open(MCRYPT_BLOWFISH,'',MCRYPT_MODE_ECB,'');
11 $iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($td),MCRYPT_DEV_URANDOM);
12 @@ -754,7 +755,7 @@
14 return $encrypted_data;
17 +*/
18 if (file_exists(LIBDIR.'blowfish.php'))
19 require_once LIBDIR.'blowfish.php';
20 else
21 @@ -801,6 +802,7 @@
22 if (! trim($secret))
23 return $encdata;
25 +/*
26 if (function_exists('mcrypt_module_open') && ! empty($encdata)) {
27 $td = mcrypt_module_open(MCRYPT_BLOWFISH,'',MCRYPT_MODE_ECB,'');
28 $iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($td),MCRYPT_DEV_URANDOM);
29 @@ -810,6 +812,7 @@
31 return $decrypted_data;
33 +*/
35 if (file_exists(LIBDIR.'blowfish.php'))
36 require_once LIBDIR.'blowfish.php';