xref: /PHP-8.2/ext/filter/tests/PMOPB45.phpt (revision 74859783)
1--TEST--
2PMOPB-45-2007:PHP ext/filter Email Validation Vulnerability
3--EXTENSIONS--
4filter
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