We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d842350 commit 24eb4e7Copy full SHA for 24eb4e7
1 file changed
bundle/Controller/Resource/Upload.php
@@ -128,7 +128,7 @@ public function __invoke(Request $request): Response
128
129
private function isEncryptedPdf(UploadedFile $file): bool
130
{
131
- if (strtolower((string) $file->getClientOriginalExtension()) !== 'pdf') {
+ if (strtolower($file->getClientOriginalExtension()) !== 'pdf') {
132
return false;
133
}
134
@@ -144,8 +144,6 @@ private function isEncryptedPdf(UploadedFile $file): bool
144
145
$head = (string) fread($fp, 4096);
146
147
- // Encryption marker may be located anywhere; read also from the end.
148
- // Suppress fseek errors (e.g. very small files).
149
@fseek($fp, -16384, SEEK_END);
150
$tail = (string) fread($fp, 16384);
151
0 commit comments