fixed xss vulnerability in un-packed version of jquery.fancybox and repack it

This commit is contained in:
Bjoern Schiessle 2012-06-14 13:41:39 +02:00
parent 544f97f034
commit cd759aee00
2 changed files with 3 additions and 794 deletions

View file

@ -84,7 +84,8 @@
}
title = selectedOpts.title || (obj.nodeName ? $(obj).attr('title') : obj.title) || '';
title = title.replace(/</, "&lt;").replace(/>/, "&gt;");
if (obj.nodeName && !selectedOpts.orig) {
selectedOpts.orig = $(obj).children("img:first").length ? $(obj).children("img:first") : $(obj);
}

File diff suppressed because one or more lines are too long