summaryrefslogtreecommitdiff
path: root/scripts/gpgfillmissingemail.php
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@cacert.org>2014-03-19 12:04:35 +0100
committerBenny Baumann <BenBE@cacert.org>2014-03-19 12:04:35 +0100
commitea9f9d8d7f0b8f196161333384da2b814ac973fe (patch)
treed0521b2adc107865ad9a9f7f3ac1a2cf4bd46e21 /scripts/gpgfillmissingemail.php
parent8568089afac180c1f3ff323a8775f974071a5cda (diff)
downloadcacert-devel-ea9f9d8d7f0b8f196161333384da2b814ac973fe.tar.gz
cacert-devel-ea9f9d8d7f0b8f196161333384da2b814ac973fe.tar.xz
cacert-devel-ea9f9d8d7f0b8f196161333384da2b814ac973fe.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.php4
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";