summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_dnsmasq_edit.php
diff options
context:
space:
mode:
authorSteve Beaver <sbeaver@netgate.com>2016-11-09 09:56:00 -0500
committerSteve Beaver <sbeaver@netgate.com>2016-11-09 09:56:00 -0500
commit8e7fea674a34ab217c9b9821c608639ca45bd281 (patch)
tree4aac5d8503632be9249966a4f59f1ba8ccb580f2 /src/usr/local/www/services_dnsmasq_edit.php
parentb8b0fab1a4ef44758ff7fdd9cbfcc8bab2fe49b9 (diff)
downloadpfsense-8e7fea674a34ab217c9b9821c608639ca45bd281.zip
pfsense-8e7fea674a34ab217c9b9821c608639ca45bd281.tar.gz
Fixed #6903
hosts and domains sorted on display, not on save to config
Diffstat (limited to 'src/usr/local/www/services_dnsmasq_edit.php')
-rw-r--r--src/usr/local/www/services_dnsmasq_edit.php16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/usr/local/www/services_dnsmasq_edit.php b/src/usr/local/www/services_dnsmasq_edit.php
index c0e456b..1d7062a 100644
--- a/src/usr/local/www/services_dnsmasq_edit.php
+++ b/src/usr/local/www/services_dnsmasq_edit.php
@@ -31,20 +31,6 @@
##|*MATCH=services_dnsmasq_edit.php*
##|-PRIV
-function hostcmp($a, $b) {
- return strcasecmp($a['host'], $b['host']);
-}
-
-function hosts_sort() {
- global $g, $config;
-
- if (!is_array($config['dnsmasq']['hosts'])) {
- return;
- }
-
- usort($config['dnsmasq']['hosts'], "hostcmp");
-}
-
require_once("guiconfig.inc");
if (!is_array($config['dnsmasq']['hosts'])) {
@@ -139,6 +125,7 @@ if ($_POST) {
}
}
}
+
/* check for overlaps */
foreach ($a_hosts as $hostent) {
if (isset($id) && ($a_hosts[$id]) && ($a_hosts[$id] === $hostent)) {
@@ -167,7 +154,6 @@ if ($_POST) {
} else {
$a_hosts[] = $hostent;
}
- hosts_sort();
mark_subsystem_dirty('hosts');
OpenPOWER on IntegriCloud