1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

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

Quickfix for path traversal issue
This commit is contained in:
JimboJoe 2019-04-02 08:17:59 +02:00 committed by GitHub
commit 9006cc7d33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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