Changeset 1018 for trunk/common


Ignore:
Timestamp:
03/01/09 16:42:37 (3 years ago)
Author:
bogdanpasoi@…
Message:

Reverting back some of the changes from the previous commit.

Location:
trunk/common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/common/attachment.php

    r1017 r1018  
    3636// Get a file's mime type. 
    3737function get_mime_type($filename) { 
    38     // finfo_open returns weird mime types for images (such as "GIF image" instead of "image/gif" 
    39     // this needs to be investigated. This is a temporary fix 
    40     exec("file -i -b " . $filename, $output); 
    41     return $output[0]; 
    42      
    4338    if (function_exists("finfo_open")) { 
    4439        // FIXME: cache. 
  • trunk/common/diff.php

    r1017 r1018  
    9292    $N = mb_strlen($a); 
    9393    $M = mb_strlen($b); 
    94     if ($N * $M > 500000) 
    95         return ""; 
    9694    $C = array(array(2), array($M+1)); 
    9795 
Note: See TracChangeset for help on using the changeset viewer.