fixed xss vulnerability in un-packed version of jquery.fancybox and repack it
This commit is contained in:
parent
544f97f034
commit
cd759aee00
2 changed files with 3 additions and 794 deletions
|
@ -84,7 +84,8 @@
|
|||
}
|
||||
|
||||
title = selectedOpts.title || (obj.nodeName ? $(obj).attr('title') : obj.title) || '';
|
||||
|
||||
title = title.replace(/</, "<").replace(/>/, ">");
|
||||
|
||||
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
Loading…
Reference in a new issue