fantu
2008-12-22 1bb82f5e3e482834f308778d70faa791a9aef1e8
replace ereg (deprecated in php 5.3)
1 files modified
4 ■■■■ changed files
interface/lib/classes/tform_actions.inc.php 4 ●●●● patch | view | raw | blame | history
interface/lib/classes/tform_actions.inc.php
@@ -418,11 +418,11 @@
                $headers .= "Content-type: text/html; charset=iso-8859-1\n";
                $headers .= "From: $sender\n";
                
                if (!ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+' . '@' . '([-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.)+' . '[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $sender)) {
                if (!preg_match('/^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+' . '@' . '([-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.)+' . '[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$/', $sender)) {
                    $sender = 'noreply@iprguard.de';
                  }
                
                if (ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+' . '@' . '([-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.)+' . '[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $email)) {
                if (preg_match('/^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+' . '@' . '([-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.)+' . '[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$/', $email)) {
                    mail($email, 'Domainrecherche Statement '.$record["domain"], $email_message, $headers);
                  }
                echo "<p>&nbsp;</p><p>Email wurde versand.</p>";