Project

General

Profile

« Previous | Next » 

Revision 1494

Added by Dietmar about 13 years ago

Fixed save wrong template directory in database

View differences:

tool.php
39 39
$admin = new admin('admintools', 'admintools', $admin_header );
40 40

  
41 41
// Check if tool is installed
42
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'tool' AND directory = '".preg_replace("/\W/", "", $tool)."'");
42
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'tool' AND directory = '".preg_replace('/[^a-z0-9_-]/i', "", $tool)."'");
43 43
if($result->numRows() == 0) {
44 44
	header("Location: index.php");
45 45
	exit(0);

Also available in: Unified diff