[feladat @ 194]
Bugfix. Unable to add record without specifying a name (which is common for @ records).
--- a/inc/dns.inc.php Thu Mar 27 15:32:17 2008 +0000
+++ b/inc/dns.inc.php Thu Mar 27 16:11:46 2008 +0000
@@ -68,14 +68,9 @@
$wildcard = false;
}
-// TODO: Needs to be checked what this is good for. Since we started insert an array
-// in functions like edit_record, "name"'s like "sub-fqdn.example.net" became
-// "sub-fqdn.example.net.example.net".
-// if ($name=="0") {
-// $name=$name.".".$domain;
-// } else {
-// $name = ($name) ? $name.".".$domain : $domain;
-// }
+ if ($name == "" || $name == "@") {
+ $name = $domain;
+ }
if (preg_match('!@\.!i', $name))
{