forked from .cyb/cyberman
Oops! Slightly bad regex causes valid domains to be rejected
This commit is contained in:
parent
fcb25f110a
commit
bf679b8cef
|
@ -93,7 +93,7 @@ post '/domains/:name/records/add' => sub {
|
|||
}
|
||||
}
|
||||
|
||||
if (param("rname") !~ m/^(@|([a-zA-Z0-9]([a-zA-Z0-9-_]*[a-zA-Z0-9])\.)*[a-zA-Z0-9]([a-zA-Z0-9-_]*[a-zA-Z0-9])?)$/) {
|
||||
if (param("rname") !~ m/^(@|([a-zA-Z0-9]([a-zA-Z0-9-_]*[a-zA-Z0-9])?\.)*[a-zA-Z0-9]([a-zA-Z0-9-_]*[a-zA-Z0-9])?)$/) {
|
||||
$errs{"e_bad_name"} = 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue