Don't use search term length when 'data' is present

This commit is contained in:
Retro_Guy 2022-02-25 06:08:27 +00:00
parent 52568dfe56
commit 4bee83df61
1 changed files with 1 additions and 1 deletions

View File

@ -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 '<h1 class="np_thread_headline">';