From: Vsevolod Stakhov Date: Fri, 2 May 2014 12:13:05 +0000 (+0100) Subject: Handle default index append. X-Git-Tag: 0.7.0~228 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1322f5b04556e4d51daaaf59bcf1f298aec6917e;p=thirdparty%2Frspamd.git Handle default index append. --- 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) {