Changeset 1018 for trunk/common
- Timestamp:
- 03/01/09 16:42:37 (3 years ago)
- Location:
- trunk/common
- Files:
-
- 2 edited
-
attachment.php (modified) (1 diff)
-
diff.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/common/attachment.php
r1017 r1018 36 36 // Get a file's mime type. 37 37 function 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 fix40 exec("file -i -b " . $filename, $output);41 return $output[0];42 43 38 if (function_exists("finfo_open")) { 44 39 // FIXME: cache. -
trunk/common/diff.php
r1017 r1018 92 92 $N = mb_strlen($a); 93 93 $M = mb_strlen($b); 94 if ($N * $M > 500000)95 return "";96 94 $C = array(array(2), array($M+1)); 97 95
Note: See TracChangeset
for help on using the changeset viewer.
![[infoarena] development](/chrome/site/logo.png)