Commit b4805be8 authored by Davide Aprea's avatar Davide Aprea

fixed regex for url validation

parent ebc7b859
......@@ -290,7 +290,7 @@ class SettingsController extends Controller
$blacklist = substr($blacklist, 0, stripos($blacklist, '/'));
}
$regexUrl = '#^[a-z0-9]+(\.[a-z0-9]{2,})+$#';
$regexUrl = '#^(\*\.)?[a-z0-9]+(\.[a-z0-9]{2,})+$#';
if(preg_match($regexUrl, $blacklist) === 1){
$path = \Request::path();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment