Ensure excess whitespace is split when white/blacklisting multiple domains

This commit is contained in:
DL6ER
2017-07-27 16:01:18 +02:00
committed by WaLLy3K
parent 1ae7247213
commit fe3e8fcb08

View File

@@ -119,7 +119,7 @@ function check_csrf($token) {
function check_domain() {
if(isset($_POST['domain'])){
$domains = explode(" ",$_POST['domain']);
$domains = preg_split('\s+', $_POST['domain']);
foreach($domains as $domain)
{
$validDomain = is_valid_domain_name($domain);