We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 411b6de commit 836fb53Copy full SHA for 836fb53
Configuration/RequestMiddlewares.php
@@ -11,10 +11,12 @@
11
*/
12
13
return [
14
- 'frontend' => [
+ 'backend' => [
15
'dlf/page-view-proxy' => [
16
'target' => \Kitodo\Dlf\Middleware\PageViewProxy::class,
17
],
18
+ ],
19
+ 'frontend' => [
20
'dlf/search-in-document' => [
21
'target' => \Kitodo\Dlf\Middleware\SearchInDocument::class,
22
'after' => [
Tests/Functional/Api/PageViewProxyTest.php
@@ -34,7 +34,8 @@ public function cannotAccessFileUrl(): void
34
$response = $this->queryProxy([
35
'url' => 'file:///etc/passwd',
36
]);
37
-
+ var_dump($response);
38
+ ob_flush();
39
$this->assertEquals(400, $response->getStatusCode());
40
}
41
0 commit comments