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:

sections_save.php
29 29
// Make sure people are allowed to access this page
30 30
if(MANAGE_SECTIONS != 'enabled') {
31 31
	header('Location: '.ADMIN_URL.'/pages/index.php');
32
	exit(0);
32 33
}
33 34

  
34 35
// Get page id
35 36
if(!isset($_GET['page_id']) OR !is_numeric($_GET['page_id'])) {
36 37
	header("Location: index.php");
38
	exit(0);
37 39
} else {
38 40
	$page_id = $_GET['page_id'];
39 41
}

Also available in: Unified diff