diff options
author | Bharat Mediratta <bharat@menalto.com> | 2012-07-21 15:01:31 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2012-07-21 15:01:31 -0700 |
commit | 6d9d6a2e5d4fae49942e78e4e812c44934513f4a (patch) | |
tree | 15176844cd2bf612a8cbbddc79f6f27adc301c22 /modules/gallery/models | |
parent | a98afdb32ce3f625ad52467e09970b91923a5b98 (diff) |
Allow albums to have two (or more) dots in the name. Fixes #1897.
Diffstat (limited to 'modules/gallery/models')
-rw-r--r-- | modules/gallery/models/item.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php index 903dadad..931da382 100644 --- a/modules/gallery/models/item.php +++ b/modules/gallery/models/item.php @@ -806,7 +806,7 @@ class Item_Model_Core extends ORM_MPTT { // Do not accept files with double extensions, they can cause problems on some // versions of Apache. - if (substr_count($this->name, ".") > 1) { + if (!$this->is_album() && substr_count($this->name, ".") > 1) { $v->add_error("name", "illegal_data_file_extension"); } |