summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2007-11-25 20:32:16 +0000
committerChris Buechler <cmb@pfsense.org>2007-11-25 20:32:16 +0000
commitac4ae11b3fefc498c0fdae1a4b105cd49914676f (patch)
treed90e8ece433a7bb73bf2b9893595a196bb08ad15
parent1d47cc7a66f489c6c8b7e4229b25550008d3d06d (diff)
downloadpfsense-ac4ae11b3fefc498c0fdae1a4b105cd49914676f.zip
pfsense-ac4ae11b3fefc498c0fdae1a4b105cd49914676f.tar.gz
Proper fix for aliases edit.
Ticket #1513 Ticket #1476
-rwxr-xr-xusr/local/www/firewall_aliases_edit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php
index 58f55d4..b9c788d 100755
--- a/usr/local/www/firewall_aliases_edit.php
+++ b/usr/local/www/firewall_aliases_edit.php
@@ -159,7 +159,7 @@ if ($_POST) {
$alias['address'] = $_POST['address'];
$address = $alias['address'];
- $final_address_detail = htmlentities($_POST['detail'], ENT_QUOTES, 'UTF-8');
+ $final_address_detail = mb_convert_encoding($_POST['detail'],"HTML-ENTITIES","auto");
if($final_address_detail <> "") {
$final_address_details .= $final_address_detail;
} else {
@@ -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 = mb_convert_encoding(\$_POST['detail" . $x . "'],'HTML_ENTITIES','auto');";
+ $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;
OpenPOWER on IntegriCloud