security fix

This commit is contained in:
Marc Delisle
2004-02-02 17:07:55 +00:00
parent f6b3a15202
commit cf8d1d330f
2 changed files with 4 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ if ($what == 'excel') {
/**
* Defines the url to return to in case of error in a sql statement
*/
require('./libraries/export/' . $type . '.php');
require('./libraries/export/' . preg_replace('@\.\.*@','.',$type) . '.php');
// Generate error url
if ($export_type == 'server') {