Update catalog.php
This commit is contained in:
parent
f4142c0529
commit
b077d4a514
|
|
@ -12,7 +12,7 @@ if (isset($_SESSION['user'])) {
|
|||
$user = new User($con, $_SESSION['user']);
|
||||
}
|
||||
|
||||
$possiblePages = [
|
||||
$possibleFilters = [
|
||||
"hats",
|
||||
"shirts",
|
||||
"tshirts",
|
||||
|
|
@ -29,7 +29,7 @@ $possiblePages = [
|
|||
|
||||
if(isset($_GET["filter"])) {
|
||||
$page = $_GET["filter"];
|
||||
if(!in_array($page,$possiblePages)) {
|
||||
if(!in_array($page,$possibleFilters)) {
|
||||
header('location: /error?err=404');
|
||||
exit;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue