Revision 286
Added by stefan almost 20 years ago
| delete_comment.php | ||
|---|---|---|
| 28 | 28 |
// Get id |
| 29 | 29 |
if(!isset($_GET['comment_id']) OR !is_numeric($_GET['comment_id'])) {
|
| 30 | 30 |
header("Location: ".ADMIN_URL."/pages/index.php");
|
| 31 |
exit(0); |
|
| 31 | 32 |
} else {
|
| 32 | 33 |
$comment_id = $_GET['comment_id']; |
| 33 | 34 |
} |
| ... | ... | |
| 35 | 36 |
// Get post id |
| 36 | 37 |
if(!isset($_GET['post_id']) OR !is_numeric($_GET['post_id'])) {
|
| 37 | 38 |
header("Location: ".ADMIN_URL."/pages/index.php");
|
| 39 |
exit(0); |
|
| 38 | 40 |
} else {
|
| 39 | 41 |
$post_id = $_GET['post_id']; |
| 40 | 42 |
} |
Also available in: Unified diff
Added an exit call after every heading("Location:...") redirector to prevent unwanted execution of code.