# 2008-01-13 Herbert Straub # http://www.linuxhacker.at # # Valid URL's can contain %20 - for example: # /nagios/cgi-bin/avail.cgi?host=localhost&service=Ntp%20Zeitservice&show_log_entries --- nagvis/includes/defines/matches.php.orig 2008-01-13 23:15:51.000000000 +0100 +++ nagvis/includes/defines/matches.php 2008-01-13 23:16:13.000000000 +0100 @@ -12,7 +12,7 @@ define('MATCH_STRING_EMPTY', '/^[0-9a-z\s\:\[\]\(\)\_\.\,\-\?\!\#\=\/\\\]*$/i'); define('MATCH_STRING_NO_SPACE', '/^[0-9a-z\:\[\]\(\)\_\.\,\-\?\!\#\@\=\/\\\]+$/i'); define('MATCH_STRING_PATH', '/^[0-9a-z\s\_\.\-\/\\\]+$/i'); -define('MATCH_STRING_URL', '/^[0-9a-z\s\:\[\]\(\)\=\?\&\_\.\-\#\\@=\/\\\]+$/i'); +define('MATCH_STRING_URL', '/^[0-9a-z\s\:\[\]\(\)\=\%\?\&\_\.\-\#\\@=\/\\\]+$/i'); define('MATCH_INTEGER', '/^[0-9]+$/'); define('MATCH_FLOAT', '/^[0-9]+[\.\,]*[0-9]*$/');