mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-19 20:09:14 +03:00
Fix the validationfunction
This commit is contained in:
parent
b457495426
commit
a0df8f8413
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ function _do_curl($method, $opts = null, $type = 'post') {
|
|||
}
|
||||
|
||||
function _valid_label($name) {
|
||||
return ( bool ) ! preg_match( '/^[a-z0-9_/.-]+$/i' , $name );
|
||||
return ( bool ) preg_match( "/^[-.a-z0-9_\/]+$/i" , $name );
|
||||
}
|
||||
|
||||
function _create_record($name, $records, $input, $zoneurl) {
|
||||
|
|
Loading…
Add table
Reference in a new issue