diff --git a/src/public/index.php b/src/public/index.php index ab6600b..06fef9a 100644 --- a/src/public/index.php +++ b/src/public/index.php @@ -182,7 +182,7 @@ $peers = $memory->getByMethodCallback(
- +
diff --git a/src/public/peer.php b/src/public/peer.php index 4d1f55e..8959bf4 100644 --- a/src/public/peer.php +++ b/src/public/peer.php @@ -212,7 +212,7 @@ $peerPortStatuses = $db->findLastPeerPortStatusesByPeerId($requestPeerId);
- +
diff --git a/src/public/search.php b/src/public/search.php index 97cd2ee..cef48ca 100644 --- a/src/public/search.php +++ b/src/public/search.php @@ -42,12 +42,12 @@ try { } // Filter request data -$requestQuery = !empty($_GET['query']) ? trim(html_entity_decode(urldecode($_GET['query']))) : '*'; +$requestQuery = !empty($_GET['query']) ? trim(html_entity_decode(urldecode($_GET['query']))) : 'this'; $requestTheme = !empty($_GET['theme']) && in_array(['default'], $_GET['theme']) ? $_GET['theme'] : 'default'; $requestPage = !empty($_GET['page']) && $_GET['page'] > 1 ? (int) $_GET['page'] : 1; // Redirect visitor to it peer page on empty search request -if ($requestQuery == '*' && !empty($_SERVER['REMOTE_ADDR'])) { +if ($requestQuery == 'this' && !empty($_SERVER['REMOTE_ADDR'])) { if (filter_var($_SERVER['REMOTE_ADDR'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV4) || filter_var($_SERVER['REMOTE_ADDR'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) { @@ -85,7 +85,7 @@ $results = $sphinx->searchPeers($requestQuery,
- +
@@ -96,7 +96,7 @@ $results = $sphinx->searchPeers($requestQuery,
-

+