[Owncloud] Mimetype bug

Vincent vprono at gmail.com
Fri Jul 20 05:45:20 UTC 2012


Hi all,

owncloud 4.0.4
I couldn't see preview of picture, pdf, .., picture app was breaked, ...

All mimetype from mimetypes.list.php aren't writing in db->oc_fscache.

In lib/helper.php line 460, strncmp function is used.

If i replace : |

 1.
    if (!strncmp(PHP_OS, "WIN", 3)) {

| by : |

 1.
    if (strncmp(PHP_OS, "WIN", 3)!=0) {

| and then delete all db->oc_fscache entries
this solves my problem.

I'm not sure, but i think that a lot of people are concerned by this 
little bug.
I opened a bug report : 
http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-1253

Sorry for the noise if it's already set.

Yoh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20120720/117e986a/attachment.html>


More information about the Owncloud mailing list