diff options
Diffstat (limited to 'apps/files_imageviewer/js/jquery.fancybox-1.3.4.js')
-rw-r--r-- | apps/files_imageviewer/js/jquery.fancybox-1.3.4.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_imageviewer/js/jquery.fancybox-1.3.4.js b/apps/files_imageviewer/js/jquery.fancybox-1.3.4.js index be77275376b..a1db7b6198c 100644 --- a/apps/files_imageviewer/js/jquery.fancybox-1.3.4.js +++ b/apps/files_imageviewer/js/jquery.fancybox-1.3.4.js @@ -84,7 +84,7 @@ }
title = selectedOpts.title || (obj.nodeName ? $(obj).attr('title') : obj.title) || '';
-
+
if (obj.nodeName && !selectedOpts.orig) {
selectedOpts.orig = $(obj).children("img:first").length ? $(obj).children("img:first") : $(obj);
}
@@ -93,6 +93,8 @@ title = selectedOpts.orig.attr('alt');
}
+ title = title.replace(/</, "<").replace(/>/, ">");
+
href = selectedOpts.href || (obj.nodeName ? $(obj).attr('href') : obj.href) || null;
if ((/^(?:javascript)/i).test(href) || href == '#') {
|