diff -r cb06e3e29ed8 -r e2c54e888f7e edit_record.php --- a/edit_record.php Thu Apr 03 21:48:36 2008 +0000 +++ b/edit_record.php Thu Apr 03 22:32:52 2008 +0000 @@ -34,7 +34,7 @@ elseif (verify_permission('zone_meta_edit_own')) { $perm_meta_edit = "own" ; } else { $perm_meta_edit = "none" ; } -$zid = get_zone_id_from_record_id($_GET["id"]); +$zid = get_zone_id_from_record_id($_GET['id']); $user_is_zone_owner = verify_user_is_owner_zoneid($zid); $zone_type = get_domain_type($zid); @@ -44,7 +44,7 @@ if ( $zone_type == "SLAVE" || $perm_content_edit == "none" || $perm_content_edit == "own" && $user_is_zone_owner == "0" ) { error(ERR_PERM_EDIT_RECORD); } else { - $ret_val = edit_record($_POST["recordid"], $_POST["domainid"], $_POST["name"], $_POST["type"], $_POST["content"], $_POST["ttl"], $_POST["prio"]); + $ret_val = edit_record($_POST); if ( $ret_val == "1" ) { success(SUC_RECORD_UPD); } else { @@ -80,8 +80,8 @@ echo "