SQLql injection patch by Pedro Laguna
parent
1b8546078a
commit
58d6c6b442
|
|
@ -25,7 +25,7 @@ $template = new plantillas($conf->template);
|
||||||
|
|
||||||
if (isset($_GET["post"])) {
|
if (isset($_GET["post"])) {
|
||||||
$id_post = $_GET["post"];
|
$id_post = $_GET["post"];
|
||||||
if (!is_numeric($id_post) && $id_post < 1 ){
|
if (!is_numeric($id_post) || $id_post < 1 ){
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue