Project

General

Profile

« Previous | Next » 

Revision 286

Added by stefan over 18 years ago

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

View differences:

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

Also available in: Unified diff