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:

backup-sql.php
27 27
$filename = $_SERVER['HTTP_HOST'].'-backup-'.gmdate('Y-m-d', mktime()+TIMEZONE).'.sql';
28 28

  
29 29
// Check if user clicked on the backup button
30
if(!isset($_POST['backup'])){ header('Location: ../'); }
30
if(!isset($_POST['backup'])){ 
31
	header('Location: ../');
32
	exit(0);
33
}
31 34

  
32 35
// Include config
33 36
require_once('../../config.php');

Also available in: Unified diff