diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-03 23:35:38 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-03 23:35:38 +0000 |
commit | 8698218da0a87cb491236607720d1fa45af9b668 (patch) | |
tree | 4d2f58388c1c0d33dfc45f0f5d2596d917a40c04 /usr/local | |
parent | 8dbd4c3a71c4694a96a2add264e0b9ea92429597 (diff) | |
download | pfsense-8698218da0a87cb491236607720d1fa45af9b668.zip pfsense-8698218da0a87cb491236607720d1fa45af9b668.tar.gz |
Filter spaces from descriptions
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/interfaces_opt.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/interfaces_opt.php b/usr/local/www/interfaces_opt.php index 9b9ac6c..bc28cd6 100755 --- a/usr/local/www/interfaces_opt.php +++ b/usr/local/www/interfaces_opt.php @@ -76,6 +76,9 @@ if ($_POST) { unset($input_errors); $pconfig = $_POST; + /* filter out spaces from descriptions */ + $POST['descr'] = str_replace(" ", "_", $POST['descr']); + /* input validation */ if ($_POST['enable']) { |