Skip to content

Commit

Permalink
[9.0] Make Gallery compatible with shorter URLs
Browse files Browse the repository at this point in the history
Fixes #515
  • Loading branch information
oparoz committed Feb 11, 2016
1 parent 9e836f4 commit 034d4d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions appinfo/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ function () use ($c, $appName) {
$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/\b(.*)\b(?<!/authenticate)$%', $url)
if (preg_match('%/apps/files(/.*)?%', $url)
|| preg_match('%^((?!/apps/).)*/s/\b(.*)\b(?<!/authenticate)$%', $url)
) {
// @codeCoverageIgnoreStart
/**
Expand Down

0 comments on commit 034d4d8

Please sign in to comment.