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:

users.php
1 1
<?php
2 2

  
3
// $Id: users.php,v 1.4 2005/04/02 06:25:53 rdjurovich Exp $
3
// $Id$
4 4

  
5 5
/*
6 6

  
......
32 32

  
33 33
if(!isset($_POST['action']) OR $_POST['action'] != "modify" AND $_POST['action'] != "delete") {
34 34
	header("Location: index.php");
35
	exit(0);
35 36
}
36 37

  
37 38
// Check if user id is a valid number and doesnt equal 1
38 39
if(!isset($_POST['user_id']) OR !is_numeric($_POST['user_id']) OR $_POST['user_id'] == 1) {
39 40
	header("Location: index.php");
41
	exit(0);
40 42
}
41 43

  
42 44
if($_POST['action'] == 'modify') {

Also available in: Unified diff