e792a8d913
Steps to reproduce: 1) Upload a PHP script to the Media Libray, naming it "test" (or any other name without extension). 2) Rename it to "exploit.php." (trailing dot!) On Linux, the file will be renamed to "exploit.php..", which is safe and cannot be exploited. On Windows though, the file will be renemad to "exploit.php" and is then remotely executable by calling it from "/uploads/exploit.php". Thanks to Junyu Zhang <rgdz.eye@gmail.com> for spotting this! Signed-off-by: Thomas Hochstein <thh@inter.net>