aboutsummaryrefslogtreecommitdiffstats
path: root/config/quagga_ospfd/quagga_ospfd.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/quagga_ospfd/quagga_ospfd.inc')
-rw-r--r--config/quagga_ospfd/quagga_ospfd.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/quagga_ospfd/quagga_ospfd.inc b/config/quagga_ospfd/quagga_ospfd.inc
index 71dfc886..b5a63bd0 100644
--- a/config/quagga_ospfd/quagga_ospfd.inc
+++ b/config/quagga_ospfd/quagga_ospfd.inc
@@ -299,6 +299,8 @@ function quagga_ospfd_validate_interface() {
function quagga_ospfd_validate_input() {
global $config, $g, $input_errors;
+ if ($_POST['password'] <> "" && (strpos($_POST['password'], "'") !== false))
+ $input_errors[] = "Password cannot contain a single quote (')";
if (!empty($_POST['routerid']) && !is_ipaddr($_POST['routerid']))
$input_errors[] = "Router ID must be an address.";
if (!is_ipaddr($_POST['area']))