summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorEirik Oeverby <ltning@anduin.net>2010-08-15 09:13:43 +0200
committerEirik Oeverby <ltning@anduin.net>2010-08-15 09:13:43 +0200
commit9d869ea397ffc0dd44cfdfe17ebaf7b1dba6cd14 (patch)
tree0794751280a27411a701aa61b2868b963282a069 /usr
parenta83744b49d87caa8ddbfdbacaecb812d29bbf86a (diff)
downloadpfsense-9d869ea397ffc0dd44cfdfe17ebaf7b1dba6cd14.zip
pfsense-9d869ea397ffc0dd44cfdfe17ebaf7b1dba6cd14.tar.gz
Fixed pattern matching for relayctl output (fixes vservers with spaces in name)
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/status_lb_vs.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/status_lb_vs.php b/usr/local/www/status_lb_vs.php
index 220b2c1..cec75ce 100755
--- a/usr/local/www/status_lb_vs.php
+++ b/usr/local/www/status_lb_vs.php
@@ -94,9 +94,9 @@ 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+([a-z]+)/", $line, $regs)) {
- $vs[$regs[1]] = array();
- $vs[$regs[1]]['status'] = $regs[2];
+ if($x = preg_match("/^[0-9]+\s+redirect\s+([0-9a-zA-Z\s]+)\s+([a-z]+)/", $line, $regs)) {
+ $vs[trim($regs[1])] = array();
+ $vs[trim($regs[1])]['status'] = trim($regs[2]);
}
}
}
OpenPOWER on IntegriCloud