Fix the validationfunction

This commit is contained in:
Mark Schouten 2014-05-26 12:20:41 +02:00
parent b457495426
commit a0df8f8413

View file

@ -42,7 +42,7 @@ function _do_curl($method, $opts = null, $type = 'post') {
} }
function _valid_label($name) { 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) { function _create_record($name, $records, $input, $zoneurl) {