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:
commit
9006cc7d33
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue