aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/perl/nginx.xs
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/modules/perl/nginx.xs')
-rw-r--r--src/http/modules/perl/nginx.xs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http/modules/perl/nginx.xs b/src/http/modules/perl/nginx.xs
index d261afa02..f65bbf093 100644
--- a/src/http/modules/perl/nginx.xs
+++ b/src/http/modules/perl/nginx.xs
@@ -453,6 +453,7 @@ filename(r)
CODE:
dXSTARG;
+ size_t root;
ngx_http_request_t *r;
ngx_http_perl_ctx_t *ctx;
@@ -463,7 +464,7 @@ filename(r)
goto done;
}
- if (ngx_http_map_uri_to_path(r, &ctx->filename, 0) == NULL) {
+ if (ngx_http_map_uri_to_path(r, &ctx->filename, &root, 0) == NULL) {
XSRETURN_UNDEF;
}