]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Apply realpath to static files dir for controller.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 2 May 2014 11:53:56 +0000 (12:53 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 2 May 2014 11:53:56 +0000 (12:53 +0100)
src/libutil/http.c

index 5c09f47a71e3c6b00e1fc82b79bee0dedb6ba7ae..5bafc91cdfaab3c0b0b499de87735eb366ce8bb8 100644 (file)
@@ -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);
                        }
                }
        }