big changes, closer to prod

This commit is contained in:
root 2025-01-18 21:16:22 +01:00
parent 95474141f4
commit f23a6e3ac8
12 changed files with 191 additions and 73 deletions

View file

@ -26,7 +26,7 @@ require("header.php");
$query = $_GET['query'];
// gets value sent over search form
$min_length = 3;
$min_length = 1;
$max_length = 32;
if(strlen($query) >= $min_length and strlen($query) <= $max_length){ // if query length is more or equal minimum length then
@ -58,6 +58,6 @@ require("header.php");
}
else{ // if query length is less than minimum or more than maximum
echo "<p>Error: Query must be between ".$min_length . " and ".$max_length . " characters.</p>";
echo "<p>Search query must be between ".$min_length . " and ".$max_length . " characters.</p>";
}
?>