[Fusionforge-commits] r10311 - branches/Branch_5_0/gforge/common/docman
Franck VILLAUME
nerville at libremir.placard.fr.eu.org
Mon Aug 9 14:50:11 CEST 2010
Author: nerville
Date: 2010-08-09 14:50:11 +0200 (Mon, 09 Aug 2010)
New Revision: 10311
Modified:
branches/Branch_5_0/gforge/common/docman/Document.class.php
Log:
fix #118
Modified: branches/Branch_5_0/gforge/common/docman/Document.class.php
===================================================================
--- branches/Branch_5_0/gforge/common/docman/Document.class.php 2010-08-09 12:49:42 UTC (rev 10310)
+++ branches/Branch_5_0/gforge/common/docman/Document.class.php 2010-08-09 12:50:11 UTC (rev 10311)
@@ -253,7 +253,7 @@
*/
function isText() {
$doctype = $this->data_array['filetype'];
- if (preg_match('/text/i',$doctype)) { // text plain, text html, text x-patch, etc
+ if (preg_match('|^text/|i',$doctype)) { // text plain, text html, text x-patch, etc
return true;
}
return false;
More information about the Fusionforge-commits
mailing list