From 4bee83df613700f91b97214304b9b4e1c21e12a5 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Fri, 25 Feb 2022 06:08:27 +0000 Subject: [PATCH] Don't use search term length when 'data' is present --- Rocksolid_Light/rocksolid/search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rocksolid_Light/rocksolid/search.php b/Rocksolid_Light/rocksolid/search.php index 08a7dd5..1c38e2a 100644 --- a/Rocksolid_Light/rocksolid/search.php +++ b/Rocksolid_Light/rocksolid/search.php @@ -13,7 +13,7 @@ if(isset($_REQUEST['data']) && $_REQUEST['data'] == '') { unset($_REQUEST['data']); } -if((!isset($_POST['key']) || !password_verify($CONFIG['thissitekey'], $_POST['key'])) || strlen(trim($_REQUEST['terms'])) < 2) { +if((!isset($_POST['key']) || !password_verify($CONFIG['thissitekey'], $_POST['key'])) || ((strlen(trim($_REQUEST['terms'])) < 2) && !$_REQUEST['data'])) { include "head.inc"; echo '

';