summaryrefslogtreecommitdiff
path: root/lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Email/SimpleCheck.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-06-01 00:07:59 +0400
committerAndrew Dolgov <[email protected]>2012-06-01 00:07:59 +0400
commitc21a462d52bd32737c32c29b060da03b38f1c2e6 (patch)
tree83b1b0a5e5451b6c4b6556886e6b590da24ca12f /lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Email/SimpleCheck.php
parent65dd90f2bae0f10aa8c4404df622d287e48b2544 (diff)
remove htmlpurifier
Diffstat (limited to 'lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Email/SimpleCheck.php')
-rw-r--r--lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Email/SimpleCheck.php21
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Email/SimpleCheck.php b/lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Email/SimpleCheck.php
deleted file mode 100644
index 94c715ab4..000000000
--- a/lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Email/SimpleCheck.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-/**
- * Primitive email validation class based on the regexp found at
- * http://www.regular-expressions.info/email.html
- */
-class HTMLPurifier_AttrDef_URI_Email_SimpleCheck extends HTMLPurifier_AttrDef_URI_Email
-{
-
- public function validate($string, $config, $context) {
- // no support for named mailboxes i.e. "Bob <[email protected]>"
- // that needs more percent encoding to be done
- if ($string == '') return false;
- $string = trim($string);
- $result = preg_match('/^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i', $string);
- return $result ? $string : false;
- }
-
-}
-
-// vim: et sw=4 sts=4