From 32e49eae99968e12a55e24aed8c5ccdec6b8b2c3 Mon Sep 17 00:00:00 2001 From: Mark Schouten Date: Tue, 3 Jun 2014 09:25:08 +0200 Subject: [PATCH] Label can be empty --- zones.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zones.php b/zones.php index c05fc2a..f32aa08 100644 --- a/zones.php +++ b/zones.php @@ -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) {