Also use string comparison

This commit is contained in:
Victor Macko 2016-03-24 07:35:06 +11:00
parent 5ddbfdd167
commit b77ffc95c3
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)) {
if(!preg_match("/{$this->server['pattern']}/i", $curl_result) && strpos($curl_result, $this->server['pattern']) === false) {
$this->error = 'Pattern not found.';
$result = false;
}