From 0ac53360b236a8c677d14cf0f51904be8a359e17 Mon Sep 17 00:00:00 2001
From: sbarstow <sbarstow@gmail.com>
Date: Mon, 20 Apr 2020 13:17:29 -0400
Subject: [PATCH] fix per project team email to parsing issue with empty doc
 security tag

---
 bits/34_extprops.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bits/34_extprops.js b/bits/34_extprops.js
index 054d9db..3f48266 100644
--- a/bits/34_extprops.js
+++ b/bits/34_extprops.js
@@ -76,7 +76,7 @@ function parse_ext_props(data, p, opts) {
 	EXT_PROPS.forEach(function(f) {
 		var xml = (data.match(matchtag(f[0]))||[])[1];
 		switch(f[2]) {
-			case "string": p[f[1]] = unescapexml(xml||""); break;
+			case "string": if(xml) p[f[1]] = unescapexml(xml); break;
 			case "bool": p[f[1]] = xml === "true"; break;
 			case "raw":
 				var cur = data.match(new RegExp("<" + f[0] + "[^>]*>([\\s\\S]*?)<\/" + f[0] + ">"));