[vhffs-dev] [1305] Cleanup in Vhffs::Function::obfuscate_email.

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1305
Author:   beuss
Date:     2008-11-01 13:07:21 +0100 (Sat, 01 Nov 2008)

Log Message:
-----------
Cleanup in Vhffs::Function::obfuscate_email.

Modified Paths:
--------------
    branches/vhffs-design/vhffs-api/src/Vhffs/Functions.pm


Modified: branches/vhffs-design/vhffs-api/src/Vhffs/Functions.pm
===================================================================
--- branches/vhffs-design/vhffs-api/src/Vhffs/Functions.pm	2008-11-01 11:12:07 UTC (rev 1304)
+++ branches/vhffs-design/vhffs-api/src/Vhffs/Functions.pm	2008-11-01 12:07:21 UTC (rev 1305)
@@ -323,11 +323,10 @@
     }
 	if($tech eq 'swap')  {
 		my @both = split /@/, $mail;
-		$mail = ${@both}[1].'/'.${@both}[0];
+		return $both[1].'/'.$both[0];
 	}
 
-    warn("Unsupported email obfuscation method !\n");
-    return $mail;
+    return "Unsupported email obfuscation method !\n";
 }
 
 =head2 js_encode_mail


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/