From 2ea6870f10f72ae89f0df0b3795496fc31380c3b Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 24 Dec 2013 20:34:32 -0500 Subject: [PATCH] bugfix: check shot filename for actual file extension, not just extension string T684 --- src/modules/shot/e_mod_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/shot/e_mod_main.c b/src/modules/shot/e_mod_main.c index 6225ad14b..4d990dbad 100644 --- a/src/modules/shot/e_mod_main.c +++ b/src/modules/shot/e_mod_main.c @@ -221,7 +221,7 @@ _file_select_ok_cb(void *data __UNUSED__, E_Dialog *dia) dia = fsel_dia; file = e_widget_fsel_selection_path_get(o_fsel); - if ((!file) || (!file[0]) || ((!eina_str_has_extension(file, "jpg")) && (!eina_str_has_extension(file, "png")))) + if ((!file) || (!file[0]) || ((!eina_str_has_extension(file, ".jpg")) && (!eina_str_has_extension(file, ".png")))) { e_util_dialog_show (_("Error - Unknown format"),