a patch for version 0.8.1 :D

add after line 194 in src/default_records.php
        else if($_REQUEST['type'] == 'TXT') {
            $q = "insert into default_records
            (group_owner_id,host,type,val,ttl,default_type) values(
            '".$user_info['cid']."',
            '$name',
            '".set_type($_REQUEST['type'])."',
            '".mysql_escape_string($_REQUEST['address'])."',
            '".$_REQUEST['ttl']."',
            '$default_type')";
        }

change line 36 in add_record_form.php
from:
    $smarty->assign('typearray', array('A','NS','MX','CNAME'));
to
    $smarty->assign('typearray', array('A','NS','MX','TXT','CNAME'));

a quick test made no problems.
Sorry but I am not unix freak enough to produce the correct diff format :(

Cheers
Georg

Reply via email to