diff options
author | Erik Fonnesbeck <efonnes@gmail.com> | 2010-08-02 01:05:14 -0600 |
---|---|---|
committer | Erik Fonnesbeck <efonnes@gmail.com> | 2010-08-02 01:05:14 -0600 |
commit | 0e1619be29e1875404e5c24b94b64d0e6d516c39 (patch) | |
tree | ac61817b2e179b42205d8cd01508457242cef2f0 | |
parent | e7346f050c0b230180bdc7aa36e90f21fcd6d377 (diff) | |
download | pfsense-0e1619be29e1875404e5c24b94b64d0e6d516c39.zip pfsense-0e1619be29e1875404e5c24b94b64d0e6d516c39.tar.gz |
The pipe character is not valid for the interface description, so don't consider it valid. ( | is not an "or" in regular expression character classes)
-rwxr-xr-x | usr/local/www/diag_backup.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php index 2e9e8b2..882240f 100755 --- a/usr/local/www/diag_backup.php +++ b/usr/local/www/diag_backup.php @@ -86,7 +86,7 @@ function add_base_packages_menu_items() { } function remove_bad_chars($string) { - return preg_replace('/[^a-z|_|0-9]/i','',$string); + return preg_replace('/[^a-z_0-9]/i','',$string); } function check_and_returnif_section_exists($section) { |