summaryrefslogtreecommitdiff
path: root/ext/filter/tests/PMOPB45.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/filter/tests/PMOPB45.phpt')
-rw-r--r--ext/filter/tests/PMOPB45.phpt11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/filter/tests/PMOPB45.phpt b/ext/filter/tests/PMOPB45.phpt
new file mode 100644
index 0000000..532eb21
--- /dev/null
+++ b/ext/filter/tests/PMOPB45.phpt
@@ -0,0 +1,11 @@
+--TEST--
+PMOPB-45-2007:PHP ext/filter Email Validation Vulnerability
+--SKIPIF--
+<?php if (!extension_loaded("filter")) die("skip"); ?>
+--FILE--
+<?php
+ $var = "test@example.com\n";
+ var_dump(filter_var($var, FILTER_VALIDATE_EMAIL));
+?>
+--EXPECT--
+bool(false)