From 1322f5b04556e4d51daaaf59bcf1f298aec6917e Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 2 May 2014 13:13:05 +0100 Subject: [PATCH] Handle default index append. --- src/libutil/http.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/libutil/http.c b/src/libutil/http.c index 2f649e4775..fe3c11feae 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -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) { -- 2.47.3