From d998c5cf12d1bfa4da7b3e0c21555b230d989bca Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 27 Apr 2010 21:48:44 -0400 Subject: Add input validation for the Backends form --- config/varnish64/varnish_backends.xml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'config/varnish64/varnish_backends.xml') diff --git a/config/varnish64/varnish_backends.xml b/config/varnish64/varnish_backends.xml index 65a03499..68736c44 100644 --- a/config/varnish64/varnish_backends.xml +++ b/config/varnish64/varnish_backends.xml @@ -108,23 +108,25 @@ - - IPAddress - ipaddress - Enter the IP Address of the backend web server. - input - Backend name backendname Enter the name of this backend web server. input + ^[a-z0-9.|-]+$ + + + IPAddress + ipaddress + Enter the IP Address of the backend web server. + input Port port Enter the TCP/IP port of the webserver. input + ^[0-9]+$ First byte timeout @@ -140,7 +142,7 @@ Probe URL - probe_url + probe_interval Enter the URL that varnish will use to ensure that this backend is healthy. input @@ -196,4 +198,7 @@ sync_package_varnish(); varnish_start(); + + varnish_backends_post_validate($_POST, &$input_errors); + \ No newline at end of file -- cgit v1.2.3