Browse code

Merge branch 'master' of zucker.schokokeks.org:webinterface

Bernd Wurst authored on02/03/2017 13:53:02
Showing2 changed files
... ...
@@ -109,6 +109,11 @@ function verify_input_ipv6( $input )
109 109
     system_failure("Ung├╝ltige IPv6-Adresse");
110 110
 }
111 111
 
112
+function verify_input_recorddata( $input )
113
+{
114
+  if (strstr($input, "\\") || strstr($input, '"'))
115
+    system_failure("Ung├╝ltige Zeichen");
116
+}
112 117
 
113 118
 function filter_quotes( $input )
114 119
 {
... ...
@@ -228,6 +228,7 @@ function save_dns_record($id, $record)
228 228
     $record['hostname'] = NULL;
229 229
   }
230 230
   verify_input_hostname($record['hostname'], true);
231
+  verify_input_recorddata($record['data']);
231 232
   if ($record['ttl'] &&  (int) $record['ttl'] < 1)
232 233
     system_failure('Fehler bei TTL');
233 234
   switch ($record['type'])