Software /
code /
verse
Diff
util/vcard.lua @ 317:38562b0b50f2
util.vcard: Don't break on data outside of VCARD sections (thanks moo-min)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 17 Dec 2012 12:47:25 +0100 |
parent | 311:de6e59e751eb |
child | 490:6b2f31da9610 |
line wrap: on
line diff
--- a/util/vcard.lua Thu Oct 11 17:00:20 2012 +0200 +++ b/util/vcard.lua Mon Dec 17 12:47:25 2012 +0100 @@ -142,7 +142,7 @@ vCards[#vCards+1] = c; elseif name == "END" and value == "VCARD" then c = nil; - elseif vCard_dtd[name] then + elseif c and vCard_dtd[name] then local dtd = vCard_dtd[name]; local p = { name = name }; c[#c+1]=p;