Case insensitive check

This commit is contained in:
Victor Macko 2016-03-30 12:25:40 +11:00
parent b77ffc95c3
commit 7cf13e5b8a
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ class StatusUpdater {
}
if($this->server['pattern'] != '') {
// Check to see if the pattern was found.
if(!preg_match("/{$this->server['pattern']}/i", $curl_result) && strpos($curl_result, $this->server['pattern']) === false) {
if(!preg_match("/{$this->server['pattern']}/i", $curl_result) && stripos($curl_result, $this->server['pattern']) === false) {
$this->error = 'Pattern not found.';
$result = false;
}