xref: /php-src/ext/filter/tests/CVE-2007-1900.phpt (revision 3b154eb8)
1--TEST--
2CVE-2007-1900: 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