aboutsummaryrefslogtreecommitdiffstats
path: root/http.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-15 22:53:53 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-15 22:53:53 +0000
commitdb5a6fcfc324f2f1d6e383d1bdcc0bcd12444eeb (patch)
tree296383c1155d0fa39668e6028e41884b18443dd4 /http.c
parentddb97bd2b53e57061116ed635c6818f6ab7ccda8 (diff)
We are shaking up trunk tonight! allow data dir to be specified (issue #6967 reported by tzafrir)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20330 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'http.c')
-rw-r--r--http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/http.c b/http.c
index 97eb6768e..736dfbd20 100644
--- a/http.c
+++ b/http.c
@@ -125,12 +125,12 @@ static char *static_callback(struct sockaddr_in *req, const char *uri, struct as
mtype=ftype2mtype(ftype, wkspace, sizeof(wkspace));
/* Cap maximum length */
- len = strlen(uri) + strlen(ast_config_AST_VAR_DIR) + strlen("/static-http/") + 5;
+ len = strlen(uri) + strlen(ast_config_AST_DATA_DIR) + strlen("/static-http/") + 5;
if (len > 1024)
goto out403;
path = alloca(len);
- sprintf(path, "%s/static-http/%s", ast_config_AST_VAR_DIR, uri);
+ sprintf(path, "%s/static-http/%s", ast_config_AST_DATA_DIR, uri);
if (stat(path, &st))
goto out404;
if (S_ISDIR(st.st_mode))