diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-04 00:19:02 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-04 00:19:02 +0000 |
commit | fc959b5521aac0b9368f43d95490029ebf94f2c0 (patch) | |
tree | 9e1021cf7628a72f32c47e5309e8670fb9bfb5b6 | |
parent | f169d6ca2ebff2bd4049742fe8f4a3987cedc67c (diff) | |
download | pfsense-fc959b5521aac0b9368f43d95490029ebf94f2c0.zip pfsense-fc959b5521aac0b9368f43d95490029ebf94f2c0.tar.gz |
Convert spaces to _
-rwxr-xr-x | usr/local/www/interfaces_opt.php | 6 |
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; |