[dev] Re: [cvs] commit: framework/MIME/MIME Magic.php
Marko Djukic
mdjukic at horde.org
Thu Feb 26 09:38:33 PST 2004
Quoting Chuck Hagenbuch <chuck at horde.org>:
> 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?
how do you know what is the last part? tar.gz is a valid two part extension.
tarr.gz is not. and we only know that when we try matching against $map.
--
Marko Djukic
Horde Project (http://horde.org)
More information about the dev
mailing list