safer handling of temporary files with open_basedir (thanks to Thijs Kinkhorst)

This commit is contained in:
Michal Čihař
2008-08-29 15:49:06 +00:00
parent 6d67c834e1
commit 47707d7613
2 changed files with 2 additions and 1 deletions

View File

@@ -74,6 +74,7 @@ danbarry
+ [lang] Belarusian update, thanks to Jaska Zedlik
+ [lang] Norwegian update, thanks to Sven-Erik Andersen
+ [lang] Italian update, thanks to Luca Rebellato
- [core] safer handling of temporary files with open_basedir (thanks to Thijs Kinkhorst)
2.11.9.0 (2008-08-28)
- bug #2031221 [auth] Links to version number on login screen

View File

@@ -543,7 +543,7 @@ class PMA_File
return false;
}
$new_file_to_upload = $GLOBALS['cfg']['TempDir'] . '/' . basename($this->getName());
$new_file_to_upload = tempnam(realpath($GLOBALS['cfg']['TempDir']), basename($this->getName()));
// surpress warnings from beeing displayed, but not from beeing logged
// any file access outside of open_basedir will issue a warning