Bug 551681 – g_content_type_guess() too naive with filenames
authorMatthias Clasen <matthiasc@src.gnome.org>
Mon, 15 Sep 2008 16:06:05 +0000 (16:06 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 15 Sep 2008 16:06:05 +0000 (16:06 +0000)
commitf634171ec54ae45c8633013521260bf45cd6de06
tree26f982c54605cafc471286b472e372ea38e45153
parent4b92cd39fd6bd439c39c1a28a56ab06ebbe4cd72
    Bug 551681 – g_content_type_guess() too naive with filenames

        * gcontenttype.c (g_content_type_guess): Check whether there's a '/'
        at the end of the filename, and declare it a directory.
        Patch by Bastien Nocera

svn path=/trunk/; revision=7491
gio/ChangeLog
gio/gcontenttype.c