Alias with more then one entry error



  • 1.2-RC3
    built on Sat Oct 20 08:17:36 EDT 2007
    Fresh install with imported Aliases

    If I try to update this alias …
    <alias><name>portQ6</name>

    <address>22 53 161 3389</address>

    <descr>Q6 22 53 161 3389</descr>
    <type>port</type>
    <detail>Entry added Sun, 28 Oct 2007 23:40:20 +0100||Entry added Mon, 29 Oct 2007 00:39:16 +0100||Entry added Mon, 29 Oct 2007 00:39:16 +0100||Entry added Mon, 29 Oct 2007 00:39:16 +0100||</detail></alias>

    If I try to save the alias (or a new one) with more then one entry i get this error:
    Warning: mb_convert_encoding(): Unknown encoding "HTML_ENTITIES" in /usr/local/www/firewall_aliases_edit.php(247) : eval()'d code on line 1 Warning: mb_convert_encoding(): Unknown encoding "HTML_ENTITIES" in /usr/local/www/firewall_aliases_edit.php(247) : eval()'d code on line 1 Warning: mb_convert_encoding(): Unknown encoding "HTML_ENTITIES" in /usr/local/www/firewall_aliases_edit.php(247) : eval()'d code on line 1 Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/firewall_aliases_edit.php(247) : eval()'d code:1) in /usr/local/www/firewall_aliases_edit.php on line 275

    $comd = "$final_address_detail = mb_convert_encoding($_POST['detail" . $x . "'],'HTML_ENTITIES','auto');";



  • there's a ticket open on this issue.
    http://cvstrac.pfsense.com/tktview?tn=1513



  • Yes , I saw it on last RC2 snapshots.



  • the bug is in/usr/local/www/firewall_aliases_edit.php on line 247 'HTML_ENTITIES' should be 'HTML-ENTITIES'
    ie
    $comd = "$final_address_detail = mb_convert_encoding($_POST['detail" . $x . "'],'HTML-ENTITIES','auto');";
    not
    $comd = "$final_address_detail = mb_convert_encoding($_POST['detail" . $x . "'],'HTML_ENTITIES','auto');";



  • Please test a new snapshot and report back, this should be resolved now.

    http://snapshots.pfsense.org/FreeBSD6/RELENG_1_2/


Log in to reply