mirror of
https://github.com/YunoHost-Apps/friendica_ynh.git
synced 2024-09-03 18:36:14 +02:00
Fix nginx security Issue
I found while I did a security check with gixy that using $uri instead of $request_uri is not good. So I replaced that. I haven't checked if all part of the app run correctly after this patch, so check it before the merge.
This commit is contained in:
parent
58774643d2
commit
001f7c620b
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ rewrite ^ https://$server_name$request_uri? permanent;
|
|||
# by denying dot files and rewrite request to the front controller
|
||||
location ^~ /.well-known/ {
|
||||
allow all;
|
||||
rewrite ^/(.*) /index.php?pagename=$uri&$args last;
|
||||
rewrite ^/(.*) /index.php?pagename=$request_uri&$args last;
|
||||
}
|
||||
|
||||
#statically serve these file types when possible
|
||||
|
|
Loading…
Add table
Reference in a new issue