Changeset 3984:360a96edeef5
- Timestamp:
- 06/28/19 10:59:20 (6 years ago)
- Branch:
- default
- Files:
-
- 3 edited
-
admin/langs.php (modified) (1 diff)
-
inc/core/class.dc.media.php (modified) (2 diffs)
-
inc/core/class.dc.modules.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
admin/langs.php
r3874 r3984 31 31 $lang_install = function ($file) { 32 32 $zip = new fileUnzip($file); 33 $zip->getList(false, '#(^|/)(__MACOSX|\.svn|\. DS_Store|\.directory|Thumbs\.db)(/|$)#');33 $zip->getList(false, '#(^|/)(__MACOSX|\.svn|\.hg.*|\.git.*|\.DS_Store|\.directory|Thumbs\.db)(/|$)#'); 34 34 35 35 if (!preg_match('/^[a-z]{2,3}(-[a-z]{2})?$/', $zip->getRootDir())) { -
inc/core/class.dc.media.php
r3968 r3984 921 921 $zip = new fileUnzip($f->file); 922 922 $zip->setExcludePattern($this->exclude_pattern); 923 $list = $zip->getList(false, '#(^|/)(__MACOSX|\.svn|\.hg |\.git|\.DS_Store|\.directory|Thumbs\.db)(/|$)#');923 $list = $zip->getList(false, '#(^|/)(__MACOSX|\.svn|\.hg.*|\.git.*|\.DS_Store|\.directory|Thumbs\.db)(/|$)#'); 924 924 925 925 if ($create_dir) { … … 973 973 { 974 974 $zip = new fileUnzip($f->file); 975 $list = $zip->getList(false, '#(^|/)(__MACOSX|\.svn|\.hg |\.git|\.DS_Store|\.directory|Thumbs\.db)(/|$)#');975 $list = $zip->getList(false, '#(^|/)(__MACOSX|\.svn|\.hg.*|\.git.*|\.DS_Store|\.directory|Thumbs\.db)(/|$)#'); 976 976 $zip->close(); 977 977 return $list; -
inc/core/class.dc.modules.php
r3874 r3984 378 378 { 379 379 $zip = new fileUnzip($zip_file); 380 $zip->getList(false, '#(^|/)(__MACOSX|\.svn|\.hg |\.git|\.DS_Store|\.directory|Thumbs\.db)(/|$)#');380 $zip->getList(false, '#(^|/)(__MACOSX|\.svn|\.hg.*|\.git.*|\.DS_Store|\.directory|Thumbs\.db)(/|$)#'); 381 381 382 382 $zip_root_dir = $zip->getRootDir();
Note: See TracChangeset
for help on using the changeset viewer.
