From 5f8aa0c78534fcc9392d568f03187ed271a7f520 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Thu, 24 Feb 2022 05:58:21 +0000 Subject: [PATCH] Ignore empty REQUEST in search.php --- Rocksolid_Light/rocksolid/search.php | 29 +++++++++------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/Rocksolid_Light/rocksolid/search.php b/Rocksolid_Light/rocksolid/search.php index d5e48e2..7b4f315 100644 --- a/Rocksolid_Light/rocksolid/search.php +++ b/Rocksolid_Light/rocksolid/search.php @@ -8,7 +8,10 @@ include "newsportal.php"; throttle_hits(); $snippet_size = 100; -//echo $_REQUEST['data']." :: ".base64_decode(urldecode($_REQUEST['data'])); + +if(isset($_REQUEST['data']) && $_REQUEST['data'] == '') { + unset($_REQUEST['data']); +} if(!isset($_POST['key']) || !password_verify($CONFIG['thissitekey'], $_POST['key'])) { include "head.inc"; @@ -62,25 +65,11 @@ if ($_GET['searchpoint'] == 'Poster') { if(isset($_GET['data'])) { echo ''; } - -?> - - - - - - - - - - - - - - - - -'; + echo ''; + echo ''; + exit(0); +} if(isset($frames_on) && $frames_on === true) { ?>