|
@@ -42,6 +42,9 @@
|
42
|
42
|
|
43
|
43
|
if (isset($_GET["post"])) {
|
44
|
44
|
$id_post = $_GET["post"];
|
|
45
|
+ if (!is_numeric($id_post) && $id_post < 1 ){
|
|
46
|
+ header("Location: index.php");
|
|
47
|
+ }
|
45
|
48
|
} else {
|
46
|
49
|
if (isset($param_url[1]) && $param_url[1]=="post") {
|
47
|
50
|
$id_post = (isset($param_url[2])) ? ((is_numeric($param_url[2])) ? $param_url[2] : NULL) : NULL;
|