mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
[PDFE] fix bug 66160
This commit is contained in:
committed by
Oleg Korshul
parent
68b1653220
commit
b3a926dd79
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user