diff options
author | neilime <escalle.emilien@gmail.com> | 2013-01-24 16:42:10 +0100 |
---|---|---|
committer | neilime <escalle.emilien@gmail.com> | 2013-01-24 16:42:10 +0100 |
commit | 1e6d61afc49a783f537bfd64ad1a57a24b5bf681 (patch) | |
tree | 5a8e8673fb1f9eba46b6becb649fc2cdef5c30e8 | |
parent | 2ab411e9b5598f648defa2ab7b62d48c8d009423 (diff) | |
download | smtp-validate-email-1e6d61afc49a783f537bfd64ad1a57a24b5bf681.zip smtp-validate-email-1e6d61afc49a783f537bfd64ad1a57a24b5bf681.tar.gz smtp-validate-email-1e6d61afc49a783f537bfd64ad1a57a24b5bf681.tar.bz2 |
Replace deprecated function ereg by preg_match
-rw-r--r-- | smtp-validate-email.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/smtp-validate-email.php b/smtp-validate-email.php index 128bd6c..6472bda 100644 --- a/smtp-validate-email.php +++ b/smtp-validate-email.php @@ -624,7 +624,7 @@ class SMTP_Validate_Email { try { $text = $line = $this->recv($timeout); - while (ereg("^[0-9]+-", $line)) { + while (preg_match("/^[0-9]+-/", $line)) { $line = $this->recv($timeout); $text .= $line; } |