Right Velocity!
Now, can you do a test for me?
- Undo your changes in last post.
- replace the
sub enc_eMail in Subs.pl by the following code:
Code:sub enc_eMail {
my ($title,$email,$subject,$body) = @_;
my $charset_value = 848 if $yycharset eq "windows-1251"; # Cyrillic
my $email_length = length($email);
my $code1 = &generate_code($email_length);
my $code2;
for (my $i = 0; $i < $email_length; $i++) {
$code2 .= chr((ord(substr($code1,$i,1))^ord(substr($email,$i,1))));
}
$code2 = &uri_escape($code2);
my $subbody;
if ($subject or $body) {
$subject = &uri_escape($subject);
$body = &uri_escape($body);
$subbody = "?subject=$subject&body=$body";
$subbody =~ s/(((<.+?>)|&#\d+;)|.)/ &enc_eMail_x($1,$2,$3) /eg;
}
$title =~ s/(((<.+?>)|&#\d+;)|.)/ &enc_eMail_x($1,$2,$3) /eg;
return qq*<script type='text/javascript'>\n<!--\nSpamInator("$title","$code1","$code2","mail\u0074o\u003a","$subbody");\n-->\n</script><noscript>$maintxt{'noscript'}</noscript>*;
sub enc_eMail_x {
my ($x,$y,$z) = @_;
if (!$y) {
$x = ord($x);
$x += $charset_value if $charset_value && $x > 126;
$x = "&#$x";
} elsif ($z) {
$x =~ s/"/\\"/g;
}
$x;
}
}
Report me.
Thanks!