From 99a8d0699083c5802de41430bbac336b5ce71c79 Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 19 Mar 2013 14:41:37 +0100 Subject: Rename function to not clash with pfsense one --- config/openbgpd/openbgpd.inc | 6 +++--- 1 file 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 +?> -- cgit v1.2.3