Project

General

Profile

« Previous | Next » 

Revision 1494

Added by Dietmar over 13 years ago

Fixed save wrong template directory in database

View differences:

details.php
33 33
	header("Location: index.php");
34 34
	exit(0);
35 35
} else {
36
	$file = preg_replace("/\W/", "", $_POST['file']);  // fix secunia 2010-92-2
36
	$file = preg_replace('/[^a-z0-9_-]/i', "", $_POST['file']);  // fix secunia 2010-92-2
37 37
}
38 38

  
39 39
// Check if the template exists

Also available in: Unified diff