You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/Actions/Diagnostics/Pipes/Checks/ImagickPdfCheck.php
+15-4Lines changed: 15 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,11 @@
22
22
*/
23
23
class ImagickPdfCheck implements DiagnosticPipe
24
24
{
25
+
publicconstDETAILS = [
26
+
'Make sure to have the policy.xml file in `/etc/ImageMagick-6/policy.xml`.',
27
+
'Verify that the file contains the line <policy domain="coder" rights="read|write" pattern="PDF"/> .',
28
+
];
29
+
25
30
/**
26
31
* {@inheritDoc}
27
32
*/
@@ -40,18 +45,24 @@ public function handle(array &$data, \Closure $next): array
40
45
}
41
46
42
47
try {
48
+
if (!file_exists('/etc/ImageMagick-6/policy.xml')) {
49
+
$data[] = DiagnosticData::warn('The policy.xml file does not exist at the expected location: /etc/ImageMagick-6/policy.xml.', self::class, self::DETAILS);
0 commit comments