]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
plugins/fts: script parser - Properly determine the attachment extension
authorJosef 'Jeff' Sipek <jeff.sipek@open-xchange.com>
Tue, 10 Mar 2020 09:13:01 +0000 (05:13 -0400)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Tue, 10 Mar 2020 12:09:39 +0000 (12:09 +0000)
src/plugins/fts/fts-parser-script.c

index f8f98e3ac55ce21b39d943c69119d96a30211aba..eefbe0799397db162ba10a15d80b3d215fb62b59 100644 (file)
@@ -138,7 +138,7 @@ static bool script_support_content(struct mail_user *user,
                extension = strrchr(filename, '.');
                if (extension == NULL)
                        return FALSE;
-               extension = filename + 1;
+               extension = extension + 1;
 
                array_foreach(&suser->content, content) {
                        if (content->extensions != NULL &&