From ec3cedf7aa00d928589dd00c81831026640c86aa Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Fri, 19 Oct 2007 19:48:16 +0000 Subject: Ticket #1476 - use convert multibyte instead of just specialchars --- usr/local/www/firewall_aliases_edit.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr/local') diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php index e7ec50a..1d3d42e 100755 --- a/usr/local/www/firewall_aliases_edit.php +++ b/usr/local/www/firewall_aliases_edit.php @@ -239,7 +239,7 @@ if ($_POST) { Pulling details here lets us only pull in details for valid address entries, saving us from having to track which ones to process later. */ - $comd = "\$final_address_detail = htmlentities( \$_POST['detail" . $x . "'], ENT_QUOTES, 'UTF-8' );"; + $comd = "\$final_address_detail = mb_convert_encoding(\$_POST['detail" . $x . "'],'HTML_ENTITIES','auto');"; eval($comd); if($final_address_detail <> "") { $final_address_details .= $final_address_detail; @@ -254,7 +254,7 @@ if ($_POST) { if (!$input_errors) { $alias['address'] = $address; - $alias['descr'] = htmlentities($_POST['descr'], ENT_QUOTES, 'UTF-8'); + $alias['descr'] = mb_convert_encoding($_POST['descr'],"HTML-ENTITIES","auto"); $alias['type'] = $_POST['type']; $alias['detail'] = $final_address_details; @@ -274,10 +274,10 @@ if ($_POST) { //we received input errors, copy data to prevent retype else { - $pconfig['descr'] = htmlentities($_POST['descr'], ENT_QUOTES, 'UTF-8'); + $pconfig['descr'] = mb_convert_encoding($_POST['descr'],"HTML-ENTITIES","auto"); $pconfig['address'] = $address; $pconfig['type'] = $_POST['type']; - $pconfig['detail'] = $final_address_details;; + $pconfig['detail'] = $final_address_details; } } -- cgit v1.1