diff options
author | Olivier Paroz <github@oparoz.com> | 2015-09-11 03:34:34 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-09-11 03:34:34 +0300 |
commit | 415d9664f1509314af228a9c984805387ccbede8 (patch) | |
tree | 4f66724fa69c565fb4cf45395ed6e3a42622e2da /appinfo | |
parent | b57bda0f027c3208adfcd8eaeba655b0cb9d9438 (diff) |
Better regexp for detection of Files app
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/app.php | 4 |
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 /** |