mirror of
https://github.com/mempool/mempool.git
synced 2024-11-20 02:11:49 +01:00
nginx: Fix gixy test http_splitting
Fixes test error: ``` >> Problem: [http_splitting] Possible HTTP-Splitting vulnerability. Description: Using variables that can contain "\n" or "\r" may lead to http injection. ``` Summary: `$uri` should never be used in `return` statements. See: https://github.com/yandex/gixy/blob/master/docs/en/plugins/httpsplitting.md In this case, `$uri` always equals `/`, so just replace it.
This commit is contained in:
parent
4b3cc7396c
commit
eec82e1bf9
@ -49,7 +49,7 @@ add_header Vary Cookie;
|
||||
# cache redirect for 10 minutes
|
||||
location = / {
|
||||
if ($lang != '') {
|
||||
return 302 $scheme://$host/$lang$uri;
|
||||
return 302 $scheme://$host/$lang/;
|
||||
}
|
||||
try_files /en-US/index.html =404;
|
||||
expires 10m;
|
||||
|
Loading…
Reference in New Issue
Block a user