Commit 28c2f9d8 authored by Bastien Nocera's avatar Bastien Nocera
Browse files

ephy-download: Detect .xz as compressed too

A fix to a hack to avoid filenames like "filename.tar(1).xz"

https://bugzilla.gnome.org/show_bug.cgi?id=711750
parent 5acb63a1
......@@ -228,7 +228,7 @@ static const char*
file_is_compressed (const char *filename)
{
int i;
static const char * const compression[] = {".gz", ".bz2", ".Z", ".lz", NULL};
static const char * const compression[] = {".gz", ".bz2", ".Z", ".lz", ".xz", NULL};
for (i = 0; compression[i] != NULL; i++) {
if (g_str_has_suffix (filename, compression[i]))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment