aboutsummaryrefslogtreecommitdiffstats
path: root/config/openbgpd/openbgpd.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-03-19 14:41:37 +0100
committerErmal <eri@pfsense.org>2013-03-19 14:41:37 +0100
commit99a8d0699083c5802de41430bbac336b5ce71c79 (patch)
tree3164c6b32f1df94c2747e0651fb28184f4b79a0c /config/openbgpd/openbgpd.inc
parent8faeea76e036374316b74f8c951ad17937fa73bf (diff)
downloadpfsense-packages-99a8d0699083c5802de41430bbac336b5ce71c79.tar.gz
pfsense-packages-99a8d0699083c5802de41430bbac336b5ce71c79.tar.bz2
pfsense-packages-99a8d0699083c5802de41430bbac336b5ce71c79.zip
Rename function to not clash with pfsense one
Diffstat (limited to 'config/openbgpd/openbgpd.inc')
-rw-r--r--config/openbgpd/openbgpd.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/openbgpd/openbgpd.inc b/config/openbgpd/openbgpd.inc
index eff2855b..2d1f47fd 100644
--- a/config/openbgpd/openbgpd.inc
+++ b/config/openbgpd/openbgpd.inc
@@ -320,11 +320,11 @@ function bgpd_validate_group() {
if ($_POST['name'] == "")
$input_errors[] = "You must enter a name.";
- $_POST['name'] = remove_bad_chars($_POST['name']);
+ $_POST['name'] = openbgpd_remove_bad_chars($_POST['name']);
}
-function remove_bad_chars($string) {
+function openbgpd_remove_bad_chars($string) {
return preg_replace('/[^a-z|_|0-9]/i','',$string);
}
@@ -369,4 +369,4 @@ function is_openbgpd_running() {
return false;
}
-?> \ No newline at end of file
+?>