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:

class.admin.php
34 34

  
35 35
if(!defined('WB_URL')) {
36 36
	header('Location: ../index.php');
37
	exit(0);
37 38
}
38 39

  
39 40
require_once(WB_PATH.'/framework/class.wb.php');
......
63 64
			// First check if the user is logged-in
64 65
			if($this->is_authenticated() == false) {
65 66
				header('Location: '.ADMIN_URL.'/login/index.php');
67
				exit(0);
66 68
			}
67 69
			// Now check if they are allowed in this section
68 70
			if($this->get_permission($section_permission) == false) {

Also available in: Unified diff