Software /
code /
verse
Changeset
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 |
parents | 316:03ad51d96858 |
children | 318:598552fc085b |
files | util/vcard.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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;