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:

details.php
29 29
// Get language name
30 30
if(!isset($_POST['code']) OR $_POST['code'] == "") {
31 31
	header("Location: index.php");
32
	exit(0);
32 33
} else {
33 34
	$code = $_POST['code'];
34 35
}
......
36 37
// Check if the language exists
37 38
if(!file_exists(WB_PATH.'/languages/'.$code.'.php')) {
38 39
	header("Location: index.php");
40
	exit(0);
39 41
}
40 42

  
41 43
// Print admin header

Also available in: Unified diff