[dev] Re: [cvs] commit: framework/MIME/MIME Magic.php

Chuck Hagenbuch chuck at horde.org
Thu Feb 26 08:21:09 PST 2004


Quoting Marko Djukic <mdjukic at horde.org>:

>   Log:
>   this should fix the bug when a filename is called something like:
>   foo_v2.3.pdf
>   previously it was returning a mime type of: application/3.pdf
>   now if it does not match the full ext as a mime type, it drops the 
> leftmost string before a '.' and tries again. anyone see any problems 
> with this?

Yeah, why do this here? Why not just pass the function only the last 
part of the
extension in the first place?

-chuck

--
"Regard my poor demoralized mule!" - Juan Valdez


More information about the dev mailing list