mirror of https://github.com/GNOME/gimp.git
g_utf8_validate the iTXt chunk, just to be sure
This commit is contained in:
parent
5f63d557f1
commit
532975823f
|
@ -735,7 +735,7 @@ load_image (const gchar *filename)
|
|||
"UTF-8", "ISO-8859-1",
|
||||
NULL, NULL, NULL);
|
||||
}
|
||||
else
|
||||
else if (g_utf8_validate (text->text, -1, NULL))
|
||||
{ /* iTXt */
|
||||
comment = g_strdup (text->text);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue