Browse Source

Merge pull request #179 from YunoHost-Apps/fix-path-traversal-issue

Quickfix for path traversal issue
pull/194/head
JimboJoe 7 years ago
committed by GitHub
parent
commit
9006cc7d33
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      conf/nginx.conf

5
conf/nginx.conf

@ -5,7 +5,8 @@ location = /.well-known/caldav {
return 301 https://$server_name__PATH__/remote.php/dav;
}
location ^~ __PATH__ {
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location ^~ __PATH__/ {
# Path to source
alias __FINALPATH__/;
@ -45,7 +46,7 @@ location ^~ __PATH__ {
#rewrite ^/.well-known/host-meta __PATH__/public.php?service=host-meta last;
#rewrite ^/.well-known/host-meta.json __PATH__/public.php?service=host-meta-json last;
location __PATH__ {
location __PATH__/ {
rewrite ^ __PATH__/index.php$request_uri;
}

Loading…
Cancel
Save