Label can be empty

This commit is contained in:
Mark Schouten 2014-06-03 09:25:08 +02:00
parent a73e3fd1d3
commit 32e49eae99

View file

@ -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) {