# HG changeset patch # User rejo # Date 1207261972 0 # Node ID e2c54e888f7e97466112eb879b6ae4222b875da0 # Parent cb06e3e29ed83f5eac2b40f7e3cafc61dd64da31 [feladat @ 231] Input for edit_record function in edit_record.php was array with incorrect fields. Fixed. This closes ticket:32. diff -r cb06e3e29ed8 -r e2c54e888f7e edit.php --- a/edit.php Thu Apr 03 21:48:36 2008 +0000 +++ b/edit.php Thu Apr 03 22:32:52 2008 +0000 @@ -113,7 +113,7 @@ echo " \n"; echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; echo " \n"; echo " ." . $zone_name . "\n"; echo " IN\n"; diff -r cb06e3e29ed8 -r e2c54e888f7e inc/record.inc.php --- a/inc/record.inc.php Thu Apr 03 21:48:36 2008 +0000 +++ b/inc/record.inc.php Thu Apr 03 22:32:52 2008 +0000 @@ -112,6 +112,7 @@ global $db; // TODO: no need to check for numeric-ness of zone id if we check with validate_input as well? if (is_numeric($record['zid'])) { + debug_print($record['type']); validate_input($record['zid'], $record['type'], $record['content'], $record['name'], $record['prio'], $record['ttl']); $query = "UPDATE records SET name=".$db->quote($record['name']).",