diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/openbgpd/openbgpd.inc | 6 |
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 +?> |