summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-12-02 15:27:15 -0500
committerjim-p <jimp@pfsense.org>2010-12-02 15:29:45 -0500
commit0a0774b511c6833a2b87975c21fdb3b10897d6c9 (patch)
tree126e385907d5201dab45a2245995cb82b26c05ea
parentb098343adf7dd177328d58a4e8d51dbdefcc2366 (diff)
downloadpfsense-0a0774b511c6833a2b87975c21fdb3b10897d6c9.zip
pfsense-0a0774b511c6833a2b87975c21fdb3b10897d6c9.tar.gz
Allow a . in hostnames. Also, don't allow a space in hostname, it was adding a bunch of trailing spaces to the end of the field. Fixes #1063
-rwxr-xr-xusr/local/www/status_lb_vs.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/status_lb_vs.php b/usr/local/www/status_lb_vs.php
index bab9976..43510c8 100755
--- a/usr/local/www/status_lb_vs.php
+++ b/usr/local/www/status_lb_vs.php
@@ -94,7 +94,7 @@ function parse_redirects($rdr_a) {
$line = $rdr_a[$i];
if (preg_match("/^[0-9]+/", $line)) {
$regs = array();
- if($x = preg_match("/^[0-9]+\s+redirect\s+([0-9a-zA-Z\s]+)\s+([a-z]+)/", $line, $regs)) {
+ if($x = preg_match("/^[0-9]+\s+redirect\s+([0-9a-zA-Z\.]+)\s+([a-z]+)/", $line, $regs)) {
$vs[trim($regs[1])] = array();
$vs[trim($regs[1])]['status'] = trim($regs[2]);
}
OpenPOWER on IntegriCloud