aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2023-10-02 14:38:10 -0100
committerMaxence Lange <maxence@artificial-owl.com>2023-10-02 14:38:10 -0100
commit39c39a0f609a6cef769e761b53f300589ff455db (patch)
tree0e5c54def1a8fc9ac148d1102e4105472702a291
parentcd1d980fbdda9f9fd9ff03413f6c8b6d13c5c730 (diff)
downloadnextcloud-server-39c39a0f609a6cef769e761b53f300589ff455db.tar.gz
nextcloud-server-39c39a0f609a6cef769e761b53f300589ff455db.zip
fix ocm-provider rewrite rules
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-rw-r--r--.htaccess1
-rw-r--r--lib/private/Setup.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/.htaccess b/.htaccess
index 7a8f41886ac..2be3c1b9e15 100644
--- a/.htaccess
+++ b/.htaccess
@@ -90,6 +90,7 @@
RewriteRule ^remote/(.*) remote.php [QSA,L]
RewriteRule ^(?:build|tests|config|lib|3rdparty|templates)/.* - [R=404,L]
RewriteRule ^\.well-known/(?!acme-challenge|pki-validation) /index.php [QSA,L]
+ RewriteRule ^ocm-provider /index.php [QSA,L]
RewriteRule ^(?:\.(?!well-known)|autotest|occ|issue|indie|db_|console).* - [R=404,L]
</IfModule>
diff --git a/lib/private/Setup.php b/lib/private/Setup.php
index 0993fe54f47..f167d19adeb 100644
--- a/lib/private/Setup.php
+++ b/lib/private/Setup.php
@@ -537,7 +537,7 @@ class Setup {
$content .= "\n RewriteCond %{REQUEST_FILENAME} !/(cron|public|remote|status)\\.php";
$content .= "\n RewriteCond %{REQUEST_FILENAME} !/ocs/v(1|2)\\.php";
$content .= "\n RewriteCond %{REQUEST_FILENAME} !/robots\\.txt";
- $content .= "\n RewriteCond %{REQUEST_FILENAME} !/(ocm-provider|ocs-provider|updater)/";
+ $content .= "\n RewriteCond %{REQUEST_FILENAME} !/(ocs-provider|updater)/";
$content .= "\n RewriteCond %{REQUEST_URI} !^/\\.well-known/(acme-challenge|pki-validation)/.*";
$content .= "\n RewriteCond %{REQUEST_FILENAME} !/richdocumentscode(_arm64)?/proxy.php$";
$content .= "\n RewriteRule . index.php [PT,E=PATH_INFO:$1]";