Page 1 of 1

a small record.php bug correction

PostPosted: Tue Aug 24, 2010 4:09 am
by olivyeah
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

Re: a small record.php bug correction

PostPosted: Wed Sep 01, 2010 10:52 am
by shannah
Thanks. I've fixed this in SVN rev. 1924. It will be included with the next release.