diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-05-02 13:13:05 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-05-02 13:13:05 +0100 |
commit | 1322f5b04556e4d51daaaf59bcf1f298aec6917e (patch) | |
tree | 7a1a3dd04373c0447d7b6c334a8f38d6b213e13d /src/libutil | |
parent | 8bf293b76f13aa37c6f627057bd71e486cd29c65 (diff) | |
download | rspamd-1322f5b04556e4d51daaaf59bcf1f298aec6917e.tar.gz rspamd-1322f5b04556e4d51daaaf59bcf1f298aec6917e.zip |
Handle default index append.
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/http.c | 9 |
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) { |