viewgit/inc/functions.php:22 Function utf8_encode() is deprecated [8192]
Filename | |
---|---|
src/executables/Fetcher.php |
diff --git a/src/executables/Fetcher.php b/src/executables/Fetcher.php index e0666e470..0f17b91dc 100755 --- a/src/executables/Fetcher.php +++ b/src/executables/Fetcher.php @@ -1163,8 +1163,8 @@ class Fetcher implements CrawlConstants $decode_token = base64_decode($tok); L\crawlLog("First 256 bytes of first token in response:"); L\crawlLog(substr($decode_token, 0, 256)); - if ($decode_token[0] != '{') { - L\crawlLog("Error in decoding response, requeest failed!!!!"); + if ($decode_token[0] != 'a' && $decode_token[1] != ':') { + L\crawlLog("Error in decoding response, request failed!!!!"); return false; } $info = unserialize($decode_token);