Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-09-11 03:34:34 +0300
committerOlivier Paroz <github@oparoz.com>2015-09-11 03:34:34 +0300
commit415d9664f1509314af228a9c984805387ccbede8 (patch)
tree4f66724fa69c565fb4cf45395ed6e3a42622e2da /appinfo
parentb57bda0f027c3208adfcd8eaeba655b0cb9d9438 (diff)
Better regexp for detection of Files app
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/app.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/appinfo/app.php b/appinfo/app.php
index 8de0e32a..a749c3ee 100644
--- a/appinfo/app.php
+++ b/appinfo/app.php
@@ -62,8 +62,8 @@ Util::addTranslations('gallery');
$request = $c->query('Request');
if (isset($request->server['REQUEST_URI'])) {
$url = $request->server['REQUEST_URI'];
- if (preg_match('%index.php/apps/files(/.*)?%', $url)
- || preg_match('%index.php/s/(/.*)?%', $url)
+ if (preg_match('%index\.php/apps/files(/.*)?%', $url)
+ || preg_match('%index\.php/s/\b(.*)\b(?<!/authenticate)$%', $url)
) {
// @codeCoverageIgnoreStart
/**