Project

General

Profile

« Previous | Next » 

Revision 286

Added by stefan almost 19 years ago

Added an exit call after every heading("Location:...") redirector to prevent unwanted execution of code.

View differences:

delete_post.php
28 28
// Get id
29 29
if(!isset($_GET['post_id']) OR !is_numeric($_GET['post_id'])) {
30 30
	header("Location: ".ADMIN_URL."/pages/index.php");
31
	exit(0);
31 32
} else {
32 33
	$post_id = $_GET['post_id'];
33 34
}

Also available in: Unified diff