xref: /PHP-7.3/ext/filter/tests/PMOPB45.phpt (revision 782352c5)
1--TEST--
2PMOPB-45-2007:PHP ext/filter Email Validation Vulnerability
3--SKIPIF--
4<?php if (!extension_loaded("filter")) die("skip"); ?>
5--FILE--
6<?php
7	$var = "test@example.com\n";
8	var_dump(filter_var($var, FILTER_VALIDATE_EMAIL));
9?>
10--EXPECT--
11bool(false)
12