|
@@ 153-164 (lines=12) @@
|
| 150 |
|
|
| 151 |
|
$this->_disconnect($fp); |
| 152 |
|
|
| 153 |
|
if ($this->_redirectaddr) { |
| 154 |
|
/* url was redirected, check if we've hit the max depth */ |
| 155 |
|
if ($this->maxredirs > $this->_redirectdepth) { |
| 156 |
|
// only follow redirect if it's on this site, or offsiteok is true |
| 157 |
|
if (preg_match("|^http://" . preg_quote($this->host) . "|i", $this->_redirectaddr) || $this->offsiteok) { |
| 158 |
|
/* follow the redirect */ |
| 159 |
|
$this->_redirectdepth++; |
| 160 |
|
$this->lastredirectaddr = $this->_redirectaddr; |
| 161 |
|
$this->fetch($this->_redirectaddr); |
| 162 |
|
} |
| 163 |
|
} |
| 164 |
|
} |
| 165 |
|
|
| 166 |
|
if ($this->_framedepth < $this->maxframes && count($this->_frameurls) > 0) { |
| 167 |
|
$frameurls = $this->_frameurls; |
|
@@ 201-212 (lines=12) @@
|
| 198 |
|
$this->_httpsrequest($path, $URI, $this->_httpmethod); |
| 199 |
|
} |
| 200 |
|
|
| 201 |
|
if ($this->_redirectaddr) { |
| 202 |
|
/* url was redirected, check if we've hit the max depth */ |
| 203 |
|
if ($this->maxredirs > $this->_redirectdepth) { |
| 204 |
|
// only follow redirect if it's on this site, or offsiteok is true |
| 205 |
|
if (preg_match("|^http://" . preg_quote($this->host) . "|i", $this->_redirectaddr) || $this->offsiteok) { |
| 206 |
|
/* follow the redirect */ |
| 207 |
|
$this->_redirectdepth++; |
| 208 |
|
$this->lastredirectaddr = $this->_redirectaddr; |
| 209 |
|
$this->fetch($this->_redirectaddr); |
| 210 |
|
} |
| 211 |
|
} |
| 212 |
|
} |
| 213 |
|
|
| 214 |
|
if ($this->_framedepth < $this->maxframes && count($this->_frameurls) > 0) { |
| 215 |
|
$frameurls = $this->_frameurls; |