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:

create.php
1 1
<?php
2 2

  
3
// $Id: create.php,v 1.10 2005/04/25 11:53:12 rdjurovich Exp $
3
// $Id$
4 4

  
5 5
/*
6 6

  
......
26 26
// Get dir name and target location
27 27
if(!isset($_POST['name']) OR $_POST['name'] == '') {
28 28
	header("Location: index.php");
29
	exit(0);
29 30
} else {
30 31
	$name = $_POST['name'];
31 32
}
32 33
if(!isset($_POST['target']) OR $_POST['target'] == '') {
33 34
	header("Location: index.php");
35
	exit(0);
34 36
} else {
35 37
	$target = $_POST['target'];
36 38
}

Also available in: Unified diff