[PDFE] fix bug 66160

This commit is contained in:
maxkadushkin
2024-01-29 12:46:08 +03:00
committed by Oleg Korshul
parent 68b1653220
commit b3a926dd79

View File

@ -57,7 +57,7 @@ function isExtendedPDFFile(text) {
let pFirst = text.substring(indexFirst + 6);
if (!pFirst.startsWith('1 0 obj\x0A<<\x0A')) {
if (!(pFirst.lastIndexOf('1 0 obj\x0A<<\x0A', 0) === 0)) {
return false;
}