]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/meta.pm
inline: The optimisation in 2.41 broke nested inlines. Detect those and avoid overopt...
[ikiwiki.git] / IkiWiki / Plugin / meta.pm
index 8803747fb9bd3cb932b222f9dd8f81aa600874b8..0afe1c3622561654bf682df6ea2e6d5b9551f135 100644 (file)
@@ -149,9 +149,9 @@ sub preprocess (@) { #{{{
                        push @{$metaheaders{$page}}, '<link href="'.encode_entities($value).
                                '" rel="openid2.local_id" />';
                }
-               if (exists $params{xrds-location} && safeurl($params{xrds-location})) {
+               if (exists $params{"xrds-location"} && safeurl($params{"xrds-location"})) {
                        push @{$metaheaders{$page}}, '<meta http-equiv="X-XRDS-Location"'.
-                               'content="'.encode_entities($params{xrds-location}).'" />';
+                               'content="'.encode_entities($params{"xrds-location"}).'" />';
                }
        }
        elsif ($key eq 'redir') {
@@ -186,7 +186,7 @@ sub preprocess (@) { #{{{
                        $value=encode_entities($value);
                }
                my $delay=int(exists $params{delay} ? $params{delay} : 0);
-               my $redir="<meta http-equiv=\"refresh\" content=\"$delay; URL=$value\">";
+               my $redir="<meta http-equiv=\"refresh\" content=\"$delay; URL=$value\" />";
                if (! $safe) {
                        $redir=scrub($redir);
                }