viewgit/inc/functions.php:22 Function utf8_encode() is deprecated [8192]
diff --git a/src/views/SearchView.php b/src/views/SearchView.php index d5ab36eee..ed82e583b 100755 --- a/src/views/SearchView.php +++ b/src/views/SearchView.php @@ -421,7 +421,7 @@ class SearchView extends View implements CrawlConstants if (C\IP_LINK && isset($page[self::IP_ADDRESSES])){ foreach ($page[self::IP_ADDRESSES] as $address) {?> <a href="?<?=$token_string_amp - ?>q=<?=urlencode('ip:'.$address) + ?>q=<?=urlencode('ip:' . $address) ?>&its=<?=$data['its'] ?>" rel='nofollow'>IP:<?= $address ?></a>. <?php } diff --git a/src/views/elements/SubsearchElement.php b/src/views/elements/SubsearchElement.php index 0265012e9..48d96966e 100644 --- a/src/views/elements/SubsearchElement.php +++ b/src/views/elements/SubsearchElement.php @@ -63,8 +63,8 @@ class SubsearchElement extends Element $found = false; foreach ($data["SUBSEARCHES"] as $search) { if ($i >= $drop_threshold) { - $append_token = ($logged_in) ? C\CSRF_TOKEN. - "=".$data[C\CSRF_TOKEN] : ""; + $append_token = ($logged_in) ? C\CSRF_TOKEN . + "=". $data[C\CSRF_TOKEN] : ""; e("<li class='outer'><a ". " href='" . B\moreUrl($logged_in) . "$append_token' ><b>". @@ -101,6 +101,7 @@ class SubsearchElement extends Element if (isset($data[C\CSRF_TOKEN]) && $logged_in) { $query .= $delim . C\CSRF_TOKEN . "=" . $data[C\CSRF_TOKEN]; + $delim = "&"; } if (isset($data['QUERY']) && !isset($data['NO_QUERY'])) {