diff options
author | Bharat Mediratta <bharat@menalto.com> | 2012-05-17 20:25:27 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2012-05-17 20:25:27 -0700 |
commit | 9e2ea2ffedb22f83137db4e5ba4c06b91f11e09d (patch) | |
tree | 2af0965685141af9cabcb01095dc431954de40e2 /modules/gallery/tests/Item_Model_Test.php | |
parent | 931da5f2ff68e3e4414583c39a22d62f13f87960 (diff) |
Smash multiple extensions down into a single one when accepting file
uploads. Fixes #1872.
Diffstat (limited to 'modules/gallery/tests/Item_Model_Test.php')
-rw-r--r-- | modules/gallery/tests/Item_Model_Test.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gallery/tests/Item_Model_Test.php b/modules/gallery/tests/Item_Model_Test.php index 6d40230f..876fc137 100644 --- a/modules/gallery/tests/Item_Model_Test.php +++ b/modules/gallery/tests/Item_Model_Test.php @@ -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; |