Dotclear

Changeset 3984:360a96edeef5


Ignore:
Timestamp:
06/28/19 10:59:20 (6 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Cope with various git/hg directories to ignore in zip archive

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • admin/langs.php

    r3874 r3984  
    3131$lang_install = function ($file) { 
    3232    $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)(/|$)#'); 
    3434 
    3535    if (!preg_match('/^[a-z]{2,3}(-[a-z]{2})?$/', $zip->getRootDir())) { 
  • inc/core/class.dc.media.php

    r3968 r3984  
    921921        $zip = new fileUnzip($f->file); 
    922922        $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)(/|$)#'); 
    924924 
    925925        if ($create_dir) { 
     
    973973    { 
    974974        $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)(/|$)#'); 
    976976        $zip->close(); 
    977977        return $list; 
  • inc/core/class.dc.modules.php

    r3874 r3984  
    378378    { 
    379379        $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)(/|$)#'); 
    381381 
    382382        $zip_root_dir = $zip->getRootDir(); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map