aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-05-02 13:13:05 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-05-02 13:13:05 +0100
commit1322f5b04556e4d51daaaf59bcf1f298aec6917e (patch)
tree7a1a3dd04373c0447d7b6c334a8f38d6b213e13d /src/libutil
parent8bf293b76f13aa37c6f627057bd71e486cd29c65 (diff)
downloadrspamd-1322f5b04556e4d51daaaf59bcf1f298aec6917e.tar.gz
rspamd-1322f5b04556e4d51daaaf59bcf1f298aec6917e.zip
Handle default index append.
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/http.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/libutil/http.c b/src/libutil/http.c
index 2f649e477..fe3c11fea 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) {