fix broken double slash redirect
nginx doesn't sanitize input to statements like return.
This commit is contained in:
parent
8ffaf9d646
commit
796bb82e8f
@ -116,8 +116,8 @@ http {
|
|||||||
return 301 /$1;
|
return 301 /$1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($request_uri ~ "//") {
|
if ($request_uri ~ (.*)//(.*)) {
|
||||||
return 301 $uri$is_args$args;
|
return 301 $1/$2;
|
||||||
}
|
}
|
||||||
|
|
||||||
location = /security.txt {
|
location = /security.txt {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user