Browse code

Setze leeren Hostname auf NULL

Bernd Wurst authored on 28/04/2014 10:02:27
Showing 1 changed files
... ...
@@ -200,6 +200,9 @@ function save_dns_record($id, $record)
200 200
   $dom->ensure_userdomain();
201 201
   if (! $dom->id)
202 202
     system_failure('invalid domain');
203
+  if ($record['hostname'] == '') {
204
+    $record['hostname'] = NULL;
205
+  }
203 206
   verify_input_hostname($record['hostname'], true);
204 207
   if ($record['ttl'] &&  (int) $record['ttl'] < 1)
205 208
     system_failure('Fehler bei TTL');