xref: /PHP-8.0/ext/filter/tests/PMOPB45.phpt (revision f8d79582)
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