Skip to content
Snippets Groups Projects
Verified Commit b3220ed9 authored by Damien's avatar Damien
Browse files

FEAT #12971 TIME 0:15 Only office port 80

parent 80b00f18
No related branches found
No related tags found
No related merge requests found
......@@ -164,7 +164,7 @@ class OnlyOfficeController
$uri = (string)$loadedXml->onlyoffice->server_uri;
$port = (string)$loadedXml->onlyoffice->server_port;
if (strpos($checkUrl, "{$uri}:{$port}/cache/files/") !== 0) {
if (strpos($checkUrl, "{$uri}:{$port}/cache/files/") !== 0 && ($port != 80 || strpos($checkUrl, "{$uri}/cache/files/") !== 0)) {
return $response->withStatus(400)->withJson(['errors' => 'Query params url is not allowed']);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment