viewgit/inc/functions.php:22 Function utf8_encode() is deprecated [8192]
diff --git a/src/controllers/ArchiveController.php b/src/controllers/ArchiveController.php index 0a2ca7328..4d816340f 100755 --- a/src/controllers/ArchiveController.php +++ b/src/controllers/ArchiveController.php @@ -78,10 +78,10 @@ class ArchiveController extends Controller implements CrawlConstants if (isset($_REQUEST['instance_num'])) { $prefix = $this->clean($_REQUEST['instance_num'], "int")."-"; } - if (file_exists(C\CRAWL_DIR.'/cache/'.$prefix.self::archive_base_name. + if (file_exists(C\CRAWL_DIR.'/cache/'.$prefix . self::archive_base_name. $crawl_time)) { $web_archive = new WebArchiveBundle( - C\CRAWL_DIR.'/cache/'.$prefix.self::archive_base_name. + C\CRAWL_DIR.'/cache/'.$prefix . self::archive_base_name. $crawl_time); $page = $web_archive->getPage($offset, $partition); echo base64_encode(serialize($page)); diff --git a/src/library/FetchUrl.php b/src/library/FetchUrl.php index f944cf92b..1f1974275 100755 --- a/src/library/FetchUrl.php +++ b/src/library/FetchUrl.php @@ -102,7 +102,7 @@ class FetchUrl implements CrawlConstants if (!empty($_SERVER['SERVER_NAME'])) { $local_hosts[] = $_SERVER['SERVER_NAME']; if (substr($_SERVER['SERVER_NAME'], 0, 3) != "www") { - $local_hosts[] = "www" . $_SERVER['SERVER_NAME']; + $local_hosts[] = "www." . $_SERVER['SERVER_NAME']; } } if (C\nsdefined("IS_OWN_WEB_SERVER") && @@ -778,7 +778,7 @@ class FetchUrl implements CrawlConstants if (!empty($_SERVER['SERVER_NAME'])) { $local_hosts[] = $_SERVER['SERVER_NAME']; if (substr($_SERVER['SERVER_NAME'], 0, 3) != "www") { - $local_hosts[] = "www" . $_SERVER['SERVER_NAME']; + $local_hosts[] = "www." . $_SERVER['SERVER_NAME']; } } if ($host !== false) {