summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_lb_vs.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-12-14 10:01:04 -0500
committerjim-p <jimp@pfsense.org>2010-12-14 10:01:04 -0500
commit5ca559d227855d9293a1d194e6981b8275e043ae (patch)
tree17a5a10bf094b01cda0cceeb0caa0d0d38ef1492 /usr/local/www/status_lb_vs.php
parent7bc5c54310d8a015528dad877667fee00247b1d7 (diff)
downloadpfsense-5ca559d227855d9293a1d194e6981b8275e043ae.zip
pfsense-5ca559d227855d9293a1d194e6981b8275e043ae.tar.gz
Use a slightly different regex to catch all non-whitespace characters here instead of the current method. Fixes #1085
Diffstat (limited to 'usr/local/www/status_lb_vs.php')
-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 43510c8..7495e37 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+([a-z]+)/", $line, $regs)) {
+ if($x = preg_match("/^[0-9]+\s+redirect\s+([^\s]+)\s+([^\s]+)/", $line, $regs)) {
$vs[trim($regs[1])] = array();
$vs[trim($regs[1])]['status'] = trim($regs[2]);
}
OpenPOWER on IntegriCloud