![]() ![]() | ![]() |
1.1 ! misho 1: --TEST-- ! 2: PMOPB-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-- ! 11: bool(false)