From 47d9c4daebe9a8d2979eeb10dbccd94c9985e0e4 Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 21 Jan 2020 14:07:46 -0500 Subject: [PATCH] update onlyoffice detection to support sheet migration --- docs/example.nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/example.nginx.conf b/docs/example.nginx.conf index 02f233735..bef853d26 100644 --- a/docs/example.nginx.conf +++ b/docs/example.nginx.conf @@ -103,7 +103,7 @@ server { # they unfortunately still require exceptions to the sandboxing to work correctly. if ($uri = "/pad/inner.html") { set $unsafe 1; } if ($uri = "/sheet/inner.html") { set $unsafe 1; } - if ($uri = "/common/onlyoffice/web-apps/apps/spreadsheeteditor/main/index.html") { set $unsafe 1; } + if ($uri ~ ^\/common\/onlyoffice\/.*\/index\.html.*$) { set $unsafe 1; } # everything except the sandbox domain is a privileged scope, as they might be used to handle keys if ($host != sandbox.cryptpad.info) { set $unsafe 0; }