From: Vsevolod Stakhov Date: Fri, 2 May 2014 11:53:56 +0000 (+0100) Subject: Apply realpath to static files dir for controller. X-Git-Tag: 0.7.0~231 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a88f5138d62cded339e973a229fbcb07ade19247;p=thirdparty%2Frspamd.git Apply realpath to static files dir for controller. --- diff --git a/src/libutil/http.c b/src/libutil/http.c index 5c09f47a71..5bafc91cdf 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -1203,7 +1203,7 @@ rspamd_http_router_new (rspamd_http_router_error_handler_t eh, msg_err ("path %s is not a directory", default_fs_path); } else { - new->default_fs_path = g_strdup (default_fs_path); + new->default_fs_path = realpath (default_fs_path, NULL); } } }