# HG changeset patch # User Mark Doliner # Date 1181514156 0 # Node ID abc4dcd25c501a646b7852096f71e5539821a25a # Parent 43961a41237a5063b6f317673776a7a981888c69 Compare the user-entered file extension to the GDK file extension case-insensitively. So if a user types "example.JPG" when saving a direct IM image, it'll save it as a jpeg and not fallback to saving it as a png because it doesn't recognize JPG as a valid file type. Another change that fixes #914 diff -r 43961a41237a -r abc4dcd25c50 pidgin/gtkimhtml.c --- a/pidgin/gtkimhtml.c Sun Jun 10 21:58:45 2007 +0000 +++ b/pidgin/gtkimhtml.c Sun Jun 10 22:22:36 2007 +0000 @@ -3188,7 +3188,7 @@ gchar *fmt_ext = extensions[0]; const gchar* file_ext = filename + strlen(filename) - strlen(fmt_ext); - if(!strcmp(fmt_ext, file_ext)){ + if(!g_ascii_strcasecmp(fmt_ext, file_ext)){ type = gdk_pixbuf_format_get_name(format); break; }