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_comment.php
28 28
// Get id
29 29
if(!isset($_POST['comment_id']) OR !is_numeric($_POST['comment_id'])) {
30 30
	header("Location: ".ADMIN_URL."/pages/index.php");
31
	exit(0);
31 32
} else {
32 33
	$comment_id = $_POST['comment_id'];
33 34
}

Also available in: Unified diff