Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Alias with more then one entry error

    Scheduled Pinned Locked Moved Firewalling
    5 Posts 4 Posters 2.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      annv
      last edited by

      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');";

      1 Reply Last reply Reply Quote 0
      • C
        cmb
        last edited by

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

        1 Reply Last reply Reply Quote 0
        • J
          Juve
          last edited by

          Yes , I saw it on last RC2 snapshots.

          1 Reply Last reply Reply Quote 0
          • M
            morbus
            last edited by

            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');";

            1 Reply Last reply Reply Quote 0
            • C
              cmb
              last edited by

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

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

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.