|
@@ -1,4 +1,4 @@ discard block |
|
|
block discarded – undo |
|
1
|
|
-<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
|
1
|
+<?php declare(strict_types=1); defined('BASEPATH') or exit('No direct script access allowed'); |
|
2
|
2
|
|
|
3
|
3
|
/** |
|
4
|
4
|
* Class Tracker_Sites_Model |
|
@@ -203,7 +203,7 @@ discard block |
|
|
block discarded – undo |
|
203
|
203
|
final private function handleCloudFlare(string $url, string $body) : bool { |
|
204
|
204
|
$refresh = FALSE; |
|
205
|
205
|
|
|
206
|
|
- if(strpos($body, 'DDoS protection by Cloudflare') !== false) { |
|
|
206
|
+ if(strpos($body, 'DDoS protection by Cloudflare') !== FALSE) { |
|
207
|
207
|
if(!$this->hasCloudFlare) { |
|
208
|
208
|
//TODO: Site appears to have enabled CloudFlare, disable it and contact admin. |
|
209
|
209
|
// We'll continue to bypass CloudFlare as this may occur in a loop. |
Please login to merge, or discard this patch.