]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Handle default index append.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 2 May 2014 12:13:05 +0000 (13:13 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 2 May 2014 12:13:05 +0000 (13:13 +0100)
src/libutil/http.c

index 2f649e4775ce5621f61a1b4a12cd12c2f05d5359..fe3c11feaeead61683985b78838249a4871ebf75 100644 (file)
@@ -1081,15 +1081,8 @@ rspamd_http_router_try_file (struct rspamd_http_connection_entry *entry,
        gchar filebuf[PATH_MAX], realbuf[PATH_MAX], *dir;
        struct rspamd_http_message *reply_msg;
 
-       /* XXX: filter filename component only */
-       if (expand_path) {
-               rspamd_snprintf (filebuf, sizeof (filebuf), "%s%c%v",
+       rspamd_snprintf (filebuf, sizeof (filebuf), "%s%c%v",
                        entry->rt->default_fs_path, G_DIR_SEPARATOR, msg->url);
-       }
-       else {
-               rspamd_snprintf (filebuf, sizeof (filebuf), "%v",
-                       msg->url);
-       }
 
        if (realpath (filebuf, realbuf) == NULL ||
                        lstat (realbuf, &st) == -1) {