@@ 165-179 (lines=15) @@ | ||
162 | ||
163 | $this->_disconnect($fp); |
|
164 | ||
165 | if($this->_redirectaddr) |
|
166 | { |
|
167 | /* url was redirected, check if we've hit the max depth */ |
|
168 | if($this->maxredirs > $this->_redirectdepth) |
|
169 | { |
|
170 | // only follow redirect if it's on this site, or offsiteok is true |
|
171 | if(preg_match("|^http://".preg_quote($this->host)."|i",$this->_redirectaddr) || $this->offsiteok) |
|
172 | { |
|
173 | /* follow the redirect */ |
|
174 | $this->_redirectdepth++; |
|
175 | $this->lastredirectaddr=$this->_redirectaddr; |
|
176 | $this->fetch($this->_redirectaddr); |
|
177 | } |
|
178 | } |
|
179 | } |
|
180 | ||
181 | if($this->_framedepth < $this->maxframes && count($this->_frameurls) > 0) |
|
182 | { |
|
@@ 225-239 (lines=15) @@ | ||
222 | $this->_httpsrequest($path, $URI, $this->_httpmethod); |
|
223 | } |
|
224 | ||
225 | if($this->_redirectaddr) |
|
226 | { |
|
227 | /* url was redirected, check if we've hit the max depth */ |
|
228 | if($this->maxredirs > $this->_redirectdepth) |
|
229 | { |
|
230 | // only follow redirect if it's on this site, or offsiteok is true |
|
231 | if(preg_match("|^http://".preg_quote($this->host)."|i",$this->_redirectaddr) || $this->offsiteok) |
|
232 | { |
|
233 | /* follow the redirect */ |
|
234 | $this->_redirectdepth++; |
|
235 | $this->lastredirectaddr=$this->_redirectaddr; |
|
236 | $this->fetch($this->_redirectaddr); |
|
237 | } |
|
238 | } |
|
239 | } |
|
240 | ||
241 | if($this->_framedepth < $this->maxframes && count($this->_frameurls) > 0) |
|
242 | { |