aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2013-02-20 19:14:20 -0500
committerAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2013-02-20 19:14:20 -0500
commit3d2be49420b0f29f169ec015f11af1f0624b9ec9 (patch)
tree17e012fa0c93e3023a14908975ef7d6c8222eb95 /IkiWiki
parent770dc95a6bd7344b037d052b03472b1f84cefdf4 (diff)
downloadikiwiki-3d2be49420b0f29f169ec015f11af1f0624b9ec9.tar
ikiwiki-3d2be49420b0f29f169ec015f11af1f0624b9ec9.tar.gz
Make enclosures absolute (in feeds they have to be).
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/meta.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/meta.pm b/IkiWiki/Plugin/meta.pm
index 70233decf..f5b9bb521 100644
--- a/IkiWiki/Plugin/meta.pm
+++ b/IkiWiki/Plugin/meta.pm
@@ -128,7 +128,7 @@ sub preprocess (@) {
}
add_depends($page, $link, deptype("presence"));
- $value=urlto($link, $page);
+ $value=urlto($link, $page, 1);
$pagestate{$page}{meta}{enclosure}=$value;
# fallthrough
}
@@ -330,7 +330,7 @@ sub pagetemplate (@) {
}
if (exists $pagestate{$page}{meta}{enclosure}) {
- $template->param(enclosure => $pagestate{$page}{meta}{enclosure});
+ $template->param(enclosure => HTML::Entities::encode_entities(IkiWiki::urlabs($pagestate{$page}{meta}{enclosure}, $config{url})));
}
foreach my $field (qw{authorurl}) {