Changeset 2623
- Timestamp:
- 02/21/10 20:55:04 (2 years ago)
- Location:
- trunk/gui/include/Net_DNS/DNS
- Files:
-
- 10 edited
-
Packet.php (modified) (1 diff)
-
RR.php (modified) (1 diff)
-
RR/CNAME.php (modified) (1 diff)
-
RR/MX.php (modified) (1 diff)
-
RR/NS.php (modified) (1 diff)
-
RR/PTR.php (modified) (1 diff)
-
RR/SOA.php (modified) (1 diff)
-
RR/SRV.php (modified) (1 diff)
-
RR/TSIG.php (modified) (1 diff)
-
Resolver.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/include/Net_DNS/DNS/Packet.php
r2622 r2623 436 436 } 437 437 } 438 $name = preg_replace(' \.$', '', $name);438 $name = preg_replace('/\.$/', '', $name); 439 439 return array($name, $offset); 440 440 } -
trunk/gui/include/Net_DNS/DNS/RR.php
r2622 r2623 114 114 $s = array_shift($parts); 115 115 if (!isset($name)) { 116 $name = preg_replace(' \.+$', '', $s);116 $name = preg_replace('/\.+$/', '', $s); 117 117 } else if (preg_match('/^\d+$/', $s)) { 118 118 $ttl = $s; -
trunk/gui/include/Net_DNS/DNS/RR/CNAME.php
r2622 r2623 52 52 } 53 53 } else { 54 $this->cname = preg_replace(" [ \t]+(.+)[\. \t]*$", '\\1', $data);54 $this->cname = preg_replace("/[ \t]+(.+)[\. \t]*$/", '\\1', $data); 55 55 } 56 56 } -
trunk/gui/include/Net_DNS/DNS/RR/MX.php
r2622 r2623 58 58 preg_match("@([0-9]+)[ \t]+(.+)[ \t]*$@", $data, $regs); 59 59 $this->preference = $regs[1]; 60 $this->exchange = preg_replace(' (.*)\.$', '\\1', $regs[2]);60 $this->exchange = preg_replace('/(.*)\.$/', '\\1', $regs[2]); 61 61 } 62 62 } -
trunk/gui/include/Net_DNS/DNS/RR/NS.php
r2622 r2623 53 53 } 54 54 } else { 55 $this->nsdname = preg_replace(" [ \t]+(.+)[ \t]*$", '\\1', $data);55 $this->nsdname = preg_replace("/[ \t]+(.+)[ \t]*$/", '\\1', $data); 56 56 } 57 57 } -
trunk/gui/include/Net_DNS/DNS/RR/PTR.php
r2622 r2623 53 53 } 54 54 } else { 55 $this->ptrdname = preg_replace(" [ \t]+(.+)[ \t]*$", '\\1', $data);55 $this->ptrdname = preg_replace("/[ \t]+(.+)[ \t]*$/", '\\1', $data); 56 56 } 57 57 } -
trunk/gui/include/Net_DNS/DNS/RR/SOA.php
r2622 r2623 69 69 if (preg_match("@([^ \t]+)[ \t]+([^ \t]+)[ \t]+([0-9]+)[^ \t]+([0-9]+)[^ \t]+([0-9]+)[^ \t]+([0-9]+)[^ \t]*$@", $string, $regs)) 70 70 { 71 $this->mname = preg_replace(' (.*)\.$', '\\1', $regs[1]);72 $this->rname = preg_replace(' (.*)\.$', '\\1', $regs[2]);71 $this->mname = preg_replace('/(.*)\.$/', '\\1', $regs[1]); 72 $this->rname = preg_replace('/(.*)\.$/', '\\1', $regs[2]); 73 73 $this->serial = $regs[3]; 74 74 $this->refresh = $regs[4]; -
trunk/gui/include/Net_DNS/DNS/RR/SRV.php
r2622 r2623 64 64 $this->weight = $regs[2]; 65 65 $this->port = $regs[3]; 66 $this->target = preg_replace(' (.*)\.$', '\\1', $regs[4]);66 $this->target = preg_replace('/(.*)\.$/', '\\1', $regs[4]); 67 67 } 68 68 } -
trunk/gui/include/Net_DNS/DNS/RR/TSIG.php
r2622 r2623 143 143 if (strlen($this->key)) { 144 144 $key = $this->key; 145 $key = preg_replace(' ', '', $key);145 $key = preg_replace('/ /', '', $key); 146 146 $key = base64_decode($key); 147 147 -
trunk/gui/include/Net_DNS/DNS/Resolver.php
r2622 r2623 326 326 while (! feof($f)) { 327 327 $line = chop(fgets($f, 10240)); 328 $line = preg_replace(' (.*)[;#].*', '\\1', $line);328 $line = preg_replace('/(.*)[;#].*/', '\\1', $line); 329 329 if (preg_match("@^[ \t]*$@", $line, $regs)) { 330 330 continue;
Note: See TracChangeset
for help on using the changeset viewer.
