mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 03:19:13 -04:00
Smash multiple extensions down into a single one when accepting file
uploads. Fixes #1872.
This commit is contained in:
@@ -490,7 +490,8 @@ class Item_Model_Test extends Gallery_Unit_Test_Case {
|
||||
}
|
||||
|
||||
public function illegal_extension_test() {
|
||||
foreach (array("test.php", "test.PHP", "test.php5", "test.php4", "test.pl") as $name) {
|
||||
foreach (array("test.php", "test.PHP", "test.php5", "test.php4",
|
||||
"test.pl", "test.php.png") as $name) {
|
||||
try {
|
||||
$photo = test::random_photo_unsaved(item::root());
|
||||
$photo->name = $name;
|
||||
|
||||
Reference in New Issue
Block a user