diff options
author | Erik Fonnesbeck <efonnes@gmail.com> | 2010-08-02 00:58:10 -0600 |
---|---|---|
committer | Erik Fonnesbeck <efonnes@gmail.com> | 2010-08-02 00:58:10 -0600 |
commit | e7346f050c0b230180bdc7aa36e90f21fcd6d377 (patch) | |
tree | dab6ac279d2a36c34df4089d3d5510777ae3653b | |
parent | 7193cf12b86ec5869a9ee9a8c729852a0f3649fb (diff) | |
download | pfsense-e7346f050c0b230180bdc7aa36e90f21fcd6d377.zip pfsense-e7346f050c0b230180bdc7aa36e90f21fcd6d377.tar.gz |
The pipe character is not valid for the interface description, so don't consider it valid in the regular expression.
-rwxr-xr-x | usr/local/www/interfaces.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index dc630ab..33721df 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -71,7 +71,7 @@ if (!is_array($config['ppps']['ppp'])) $a_ppps = &$config['ppps']['ppp']; function remove_bad_chars($string) { - return preg_replace('/[^a-z|_|0-9]/i','',$string); + return preg_replace('/[^a-z_0-9]/i','',$string); } if (!is_array($config['gateways']['gateway_item'])) |