diff options
author | jim-p <jimp@pfsense.org> | 2010-12-14 10:01:04 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-12-14 10:01:04 -0500 |
commit | 5ca559d227855d9293a1d194e6981b8275e043ae (patch) | |
tree | 17a5a10bf094b01cda0cceeb0caa0d0d38ef1492 /usr | |
parent | 7bc5c54310d8a015528dad877667fee00247b1d7 (diff) | |
download | pfsense-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')
-rwxr-xr-x | usr/local/www/status_lb_vs.php | 2 |
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]); } |