aboutsummaryrefslogtreecommitdiff
path: root/mod/file
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-05 16:32:57 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-05 16:32:57 +0000
commit77b7fb6ddb75174af6c83a7c852d3986a1dfa5fa (patch)
tree590388262a199aae3c08f3a7499befb7d7d525eb /mod/file
parenta0e8faa0f7a3c131f7963a62feaaa391fb72b18f (diff)
downloadelgg-77b7fb6ddb75174af6c83a7c852d3986a1dfa5fa.tar.gz
elgg-77b7fb6ddb75174af6c83a7c852d3986a1dfa5fa.tar.bz2
fixed two validation issues with ampersands in file plugin
git-svn-id: http://code.elgg.org/elgg/trunk@8586 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/file')
-rw-r--r--mod/file/views/default/file/specialcontent/image/default.php1
-rw-r--r--mod/file/views/default/icon/object/file.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/mod/file/views/default/file/specialcontent/image/default.php b/mod/file/views/default/file/specialcontent/image/default.php
index 91ec11064..8ae251cfc 100644
--- a/mod/file/views/default/file/specialcontent/image/default.php
+++ b/mod/file/views/default/file/specialcontent/image/default.php
@@ -4,6 +4,7 @@
*/
$image_url = elgg_get_site_url() . "mod/file/thumbnail.php?file_guid={$vars['entity']->getGUID()}&size=large";
+$image_url = elgg_format_url($image_url);
$download_url = elgg_get_site_url() . "mod/file/download.php?file_guid={$vars['entity']->getGUID()}";
if ($vars['full'] && $smallthumb = $vars['entity']->smallthumb) {
diff --git a/mod/file/views/default/icon/object/file.php b/mod/file/views/default/icon/object/file.php
index 249dd9c99..6357d418f 100644
--- a/mod/file/views/default/icon/object/file.php
+++ b/mod/file/views/default/icon/object/file.php
@@ -28,6 +28,7 @@ if ($entity->thumbnail) {
}
$img_src = $entity->getIconURL($vars['size']);
+$img_src = elgg_format_url($img_src);
$img = "<img $class src=\"$img_src\" alt=\"$title\" />";
if ($url) {