diff options
author | Benny Baumann <BenBE@cacert.org> | 2014-03-19 12:04:35 +0100 |
---|---|---|
committer | Benny Baumann <BenBE@cacert.org> | 2014-03-19 12:04:35 +0100 |
commit | ea9f9d8d7f0b8f196161333384da2b814ac973fe (patch) | |
tree | d0521b2adc107865ad9a9f7f3ac1a2cf4bd46e21 /scripts/gpgfillmissingemail.php | |
parent | 8568089afac180c1f3ff323a8775f974071a5cda (diff) | |
download | cacert-devel-bug-1184.tar.gz cacert-devel-bug-1184.tar.xz cacert-devel-bug-1184.zip |
bug 1184: Quick workaround for name collission on hex2bin on recent PHP versionsbug-1184
Diffstat (limited to 'scripts/gpgfillmissingemail.php')
-rw-r--r-- | scripts/gpgfillmissingemail.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gpgfillmissingemail.php b/scripts/gpgfillmissingemail.php index f328876..39f9d8f 100644 --- a/scripts/gpgfillmissingemail.php +++ b/scripts/gpgfillmissingemail.php @@ -18,7 +18,7 @@ require_once("../includes/mysql.php"); //general.php"); //include "../includes/general.php"; -function hex2bin($data) +function gpg_hex2bin($data) { while(strstr($data, "\\x")) { @@ -69,7 +69,7 @@ echo "Found:\n"; if (preg_match("/<([\w.-]*\@[\w.-]*)>/", $bits[9],$match)) { //echo "Found: ".$match[1]; - $mail = trim(hex2bin($match[1])); + $mail = trim(gpg_hex2bin($match[1])); echo "EMail: *$mail**\n"; |