a small record.php bug correction

Archived from the Xataface Developers forum.

olivyeah — Tue Aug 24, 2010 4:09 am

Small correction on record.php
xataface 1.2.4 /dataface/record.php

line 2262

Code: Select all
if(extension_loaded('fileinfo')) {                $res = finfo_open(FILEINFO_MIME); /* return mime type ala mimetype extension */                $mimetype = finfo_file($path);

it works better with “$mimetype = finfo_file($res, $path);”

Code: Select all
if(extension_loaded('fileinfo')) {                $res = finfo_open(FILEINFO_MIME); /* return mime type ala mimetype extension */                $mimetype = finfo_file($res, $path);

best regards


oliv


shannah — Wed Sep 01, 2010 10:52 am

Thanks. I’ve fixed this in SVN rev. 1924. It will be included with the next release.