From 0d88619edb3a7dcd7c8b95017b1e097828bdd6e8 Mon Sep 17 00:00:00 2001 From: Mark Schouten Date: Thu, 12 Jun 2014 15:53:16 +0200 Subject: [PATCH] Also check if the domain has non-ascii-characters --- zones.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zones.php b/zones.php index eabc942..ba63129 100644 --- a/zones.php +++ b/zones.php @@ -187,6 +187,9 @@ if ($action == "list" or $action== "listslaves") { if (_valid_label($_POST['name']) === FALSE) { _jtable_respond(null, 'error', "Please only use [a-z0-9_/.-]"); } + if (is_ascii($_POST['name']) === FALSE) { + _jtable_respond(null, 'error', "Please only use ASCII-characters in your domainname"); + } if ($_POST['kind'] != null and $_POST['name'] != null) { $nameservers = array(); if ($_POST['kind'] != "Slave") {