@@ -38,7 +38,7 @@ |
||
38 | 38 | */ |
39 | 39 | public function handle(ServerRequestInterface $request): ResponseInterface |
40 | 40 | { |
41 | - $tree = $request->getQueryParams()['ged'] ?? ''; |
|
41 | + $tree = $request->getQueryParams()['ged'] ?? ''; |
|
42 | 42 | $xref = $request->getQueryParams()['sid'] ?? ''; |
43 | 43 | $route = route('source', ['tree' => $tree, 'xref' => $xref]); |
44 | 44 |
@@ -188,7 +188,7 @@ |
||
188 | 188 | $params['tree'] = $media_file->media()->tree()->name(); |
189 | 189 | $this->glideSignature()->validateRequest('', $params); |
190 | 190 | |
191 | - $path = $media_file->media()->tree()->getPreference('MEDIA_DIRECTORY', 'media/') . $media_file->filename(); |
|
191 | + $path = $media_file->media()->tree()->getPreference('MEDIA_DIRECTORY', 'media/') . $media_file->filename(); |
|
192 | 192 | $folder = dirname($path); |
193 | 193 | |
194 | 194 | $cache_path = 'thumbnail-cache/' . md5($folder); |
@@ -38,8 +38,8 @@ discard block |
||
38 | 38 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
39 | 39 | { |
40 | 40 | // The configuration comes from config.ini.php, via request attributes. |
41 | - $trusted_headers = $this->getCommaSeparatedAttribute($request,'trusted_headers'); |
|
42 | - $trusted_proxies = $this->getCommaSeparatedAttribute($request,'trusted_proxies'); |
|
41 | + $trusted_headers = $this->getCommaSeparatedAttribute($request, 'trusted_headers'); |
|
42 | + $trusted_proxies = $this->getCommaSeparatedAttribute($request, 'trusted_proxies'); |
|
43 | 43 | |
44 | 44 | $this->proxy($trusted_proxies, $trusted_headers); |
45 | 45 | |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * |
53 | 53 | * @return string[] |
54 | 54 | */ |
55 | - private function getCommaSeparatedAttribute(ServerRequestInterface $request, string $attribute): array |
|
55 | + private function getCommaSeparatedAttribute(ServerRequestInterface $request, string $attribute): array |
|
56 | 56 | { |
57 | 57 | $value = $request->getAttribute($attribute); |
58 | 58 |