Ignore:
Timestamp:
06/16/12 01:47:07 (7 years ago)
Author:
gogo
Message:

A few belated patches to Xinha...

Use session_write_close in php-xinha to close the session quicker in order to reduce lock waits
Set the default borders for insert table to no-border
Allow to choose no border style when inserting tables
Skip the "complete" attribute of images when domwalking (think this was firefox or something)
A handful of fixes to the (old) MootoolsFileManager?
Small fix to Stylist
Add .htaccess to ExtendedFileManager? demo_images
Small fix to PasteText?

Trac is down for me right now so no ticket number, will add a ticket to reference this changeset asap.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/MootoolsFileManager/mootools-filemanager/Backend/FileManager.php

    r1245 r1313  
    333333 
    334334        protected function getMimeType($file){ 
    335                 return is_dir($file) ? 'text/directory' : Upload::mime($file); 
     335                return preg_replace('/; charset.*$/', '', is_dir($file) ? 'text/directory' : Upload::mime($file)); 
    336336        } 
    337337         
     
    349349                $mimes = $this->getAllowedMimeTypes(); 
    350350                $hasFilter = $this->options['filter'] && count($mimes); 
     351 
    351352                if ($hasFilter) array_push($mimes, 'text/directory'); 
    352353                return !(!$file || !FileManagerUtility::startsWith($file, $this->basedir) || !file_exists($file) || ($hasFilter && !in_array($this->getMimeType($file), $mimes))); 
Note: See TracChangeset for help on using the changeset viewer.