[Openvas-commits] r12113 - in trunk/gsa: . src

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Nov 14 16:01:05 CET 2011


Author: mattm
Date: 2011-11-14 16:01:04 +0100 (Mon, 14 Nov 2011)
New Revision: 12113

Modified:
   trunk/gsa/ChangeLog
   trunk/gsa/src/gsad.c
Log:
	* src/gsad.c (init_validator): Add - to hostport.

Modified: trunk/gsa/ChangeLog
===================================================================
--- trunk/gsa/ChangeLog	2011-11-14 14:52:06 UTC (rev 12112)
+++ trunk/gsa/ChangeLog	2011-11-14 15:01:04 UTC (rev 12113)
@@ -1,3 +1,7 @@
+2011-11-14  Matthew Mundell <matthew.mundell at greenbone.net>
+
+	* src/gsad.c (init_validator): Add - to hostport.
+
 2011-11-11  Jan-Oliver Wagner <jan-oliver.wagner at greenbone.net>
 
 	* src/html/omp.xsl (get_info_response): Explain better the situation

Modified: trunk/gsa/src/gsad.c
===================================================================
--- trunk/gsa/src/gsad.c	2011-11-14 14:52:06 UTC (rev 12112)
+++ trunk/gsa/src/gsad.c	2011-11-14 15:01:04 UTC (rev 12113)
@@ -652,7 +652,7 @@
   openvas_validator_add (validator, "max_results",  "^[0-9]+$");
   openvas_validator_add (validator, "format",     "^[-[:alnum:]]{1,15}$");
   openvas_validator_add (validator, "host",       "^[[:alnum:]\\.]{1,80}$");
-  openvas_validator_add (validator, "hostport",   "^[[:alnum:]\\. :]{1,80}$");
+  openvas_validator_add (validator, "hostport",   "^[-[:alnum:]\\. :]{1,80}$");
   openvas_validator_add (validator, "hosts",      "^[-[:alnum:],: \\./]{1,2000}$");
   openvas_validator_add (validator, "hosts_allow", "^0|1|2$");
   openvas_validator_add (validator, "hosts_opt",  "^[[:alnum:], \\./]{0,80}$");



More information about the Openvas-commits mailing list