summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2007-10-19 19:48:16 +0000
committerBill Marquette <billm@pfsense.org>2007-10-19 19:48:16 +0000
commitec3cedf7aa00d928589dd00c81831026640c86aa (patch)
tree0122f45604d2b70070e56078f9d3ce44b14a249e /usr
parenta94e9f6629514434cde459ad4dfdc316a1b4f12a (diff)
downloadpfsense-ec3cedf7aa00d928589dd00c81831026640c86aa.zip
pfsense-ec3cedf7aa00d928589dd00c81831026640c86aa.tar.gz
Ticket #1476 - use convert multibyte instead of just specialchars
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/firewall_aliases_edit.php8
1 files changed, 4 insertions, 4 deletions
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;
}
}
OpenPOWER on IntegriCloud