mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
issue #1073 prevents from making uploaded file executable
* for the name of the file in buffer directory, do not use the name given by the user, but the md5 of the name without extension * function add_uploaded_file deletes uploaded file if not expected
This commit is contained in:
@@ -237,11 +237,13 @@ SELECT
|
||||
}
|
||||
else
|
||||
{
|
||||
unlink($source_filepath);
|
||||
die('unexpected file type');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
unlink($source_filepath);
|
||||
die('forbidden file type');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user