summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-04 00:19:02 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-04 00:19:02 +0000
commitfc959b5521aac0b9368f43d95490029ebf94f2c0 (patch)
tree9e1021cf7628a72f32c47e5309e8670fb9bfb5b6
parentf169d6ca2ebff2bd4049742fe8f4a3987cedc67c (diff)
downloadpfsense-fc959b5521aac0b9368f43d95490029ebf94f2c0.zip
pfsense-fc959b5521aac0b9368f43d95490029ebf94f2c0.tar.gz
Convert spaces to _
-rwxr-xr-xusr/local/www/interfaces_opt.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/interfaces_opt.php b/usr/local/www/interfaces_opt.php
index a27f5e9..458f7ef 100755
--- a/usr/local/www/interfaces_opt.php
+++ b/usr/local/www/interfaces_opt.php
@@ -42,7 +42,9 @@ if (!$index)
exit;
$optcfg = &$config['interfaces']['opt' . $index];
-$pconfig['descr'] = $optcfg['descr'];
+$optcfg['descr'] = str_replace(" ", "_", $optcfg['descr']);
+
+$pconfig['descr'] = str_replace(" ", "_", $optcfg['descr']);
$pconfig['bridge'] = $optcfg['bridge'];
$pconfig['bandwidth'] = $optcfg['bandwidth'];
@@ -140,7 +142,7 @@ if ($_POST) {
if (!$input_errors) {
- $optcfg['descr'] = $_POST['descr'];
+ $optcfg['descr'] = str_replace(" ", "_", $_POST['descr']);
$optcfg['bridge'] = $_POST['bridge'];
$optcfg['enable'] = $_POST['enable'] ? true : false;
OpenPOWER on IntegriCloud