From d01661565afb6df5a9c7d56a957df79ac5efcd9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Bulik?= Date: Tue, 25 Jan 2022 08:52:05 +0100 Subject: [PATCH] Fixes xls with embedded doc may show wrong props --- bits/76_xls.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bits/76_xls.js b/bits/76_xls.js index dc8ee12..36e5715 100644 --- a/bits/76_xls.js +++ b/bits/76_xls.js @@ -879,14 +879,14 @@ var PSCLSID = { }; function parse_xls_props(cfb/*:CFBContainer*/, props, o) { /* [MS-OSHARED] 2.3.3.2.2 Document Summary Information Property Set */ - var DSI = CFB.find(cfb, '!DocumentSummaryInformation'); + var DSI = CFB.find(cfb, '/!DocumentSummaryInformation'); if(DSI && DSI.size > 0) try { var DocSummary = parse_PropertySetStream(DSI, DocSummaryPIDDSI, PSCLSID.DSI); for(var d in DocSummary) props[d] = DocSummary[d]; } catch(e) {if(o.WTF) throw e;/* empty */} /* [MS-OSHARED] 2.3.3.2.1 Summary Information Property Set*/ - var SI = CFB.find(cfb, '!SummaryInformation'); + var SI = CFB.find(cfb, '/!SummaryInformation'); if(SI && SI.size > 0) try { var Summary = parse_PropertySetStream(SI, SummaryPIDSI, PSCLSID.SI); for(var s in Summary) if(props[s] == null) props[s] = Summary[s];