Revision 286
Added by stefan almost 20 years ago
| groups.php | ||
|---|---|---|
| 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 group group_id is a valid number and doesnt equal 1 |
| 38 | 39 |
if(!isset($_POST['group_id']) OR !is_numeric($_POST['group_id']) OR $_POST['group_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
Added an exit call after every heading("Location:...") redirector to prevent unwanted execution of code.