Try double-escaping dots

This commit is contained in:
niten 2023-09-02 18:28:18 -07:00
parent dc244f10f7
commit 668621dc63
1 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ in {
"deny all;"; "deny all;";
"~ ^/(?:.|autotest|occ|issue|indie|db_|console)".extraConfig = "~ ^/(?:.|autotest|occ|issue|indie|db_|console)".extraConfig =
"deny all;"; "deny all;";
"~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|oc[ms]-provider/.+).php(?:$|/)" = "~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|oc[ms]-provider/.+)\\.php(?:$|/)" =
{ {
fastcgiParams = { fastcgiParams = {
SCRIPT_FILENAME = SCRIPT_FILENAME =
@ -194,7 +194,7 @@ in {
front_controller_active = "true"; front_controller_active = "true";
}; };
extraConfig = '' extraConfig = ''
fastcgi_split_path_info ^(.+?\.php)(\/.*|)$; fastcgi_split_path_info ^(.+?\\.php)(\\/.*|)$;
set $path_info $fastcgi_path_info; set $path_info $fastcgi_path_info;
try_files $fastcgi_script_name =404; try_files $fastcgi_script_name =404;