summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2019-02-17 17:18:21 +0100
committerMorris Jobke <hey@morrisjobke.de>2019-02-20 15:41:38 +0100
commit2bf2633c0518b331bf7bf006d6c5327cad6ccbe9 (patch)
treeb2bc88a71fa6cab6400aa9905d9b256d3b221aef
parentf3f8ab1a196467825d133a28785503d13e751172 (diff)
downloadnextcloud-server-2bf2633c0518b331bf7bf006d6c5327cad6ccbe9.tar.gz
nextcloud-server-2bf2633c0518b331bf7bf006d6c5327cad6ccbe9.zip
make sure that the ocm end-point discovery /ocm-provider is not redirected to the index.php
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
-rw-r--r--lib/private/Setup.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Setup.php b/lib/private/Setup.php
index 0278191587a..5b2f71e69c5 100644
--- a/lib/private/Setup.php
+++ b/lib/private/Setup.php
@@ -517,6 +517,7 @@ class Setup {
$content .= "\n RewriteCond %{REQUEST_FILENAME} !/robots.txt";
$content .= "\n RewriteCond %{REQUEST_FILENAME} !/updater/";
$content .= "\n RewriteCond %{REQUEST_FILENAME} !/ocs-provider/";
+ $content .= "\n RewriteCond %{REQUEST_FILENAME} !/ocm-provider/";
$content .= "\n RewriteCond %{REQUEST_URI} !^/\\.well-known/(acme-challenge|pki-validation)/.*";
$content .= "\n RewriteRule . index.php [PT,E=PATH_INFO:$1]";
$content .= "\n RewriteBase " . $rewriteBase;