Project

General

Profile

« Previous | Next » 

Revision 0a0774b5

Added by Jim Pingle over 14 years ago

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

View differences:

usr/local/www/status_lb_vs.php
94 94
    $line = $rdr_a[$i];
95 95
    if (preg_match("/^[0-9]+/", $line)) {
96 96
      $regs = array();
97
      if($x = preg_match("/^[0-9]+\s+redirect\s+([0-9a-zA-Z\s]+)\s+([a-z]+)/", $line, $regs)) {
97
      if($x = preg_match("/^[0-9]+\s+redirect\s+([0-9a-zA-Z\.]+)\s+([a-z]+)/", $line, $regs)) {
98 98
        $vs[trim($regs[1])] = array();
99 99
        $vs[trim($regs[1])]['status'] = trim($regs[2]);
100 100
      }

Also available in: Unified diff