diff options
author | Joey Hess <joey@kitenet.net> | 2007-12-08 15:05:41 -0500 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2007-12-08 15:05:41 -0500 |
commit | ccf99970a756f04ba3224b8c9141bcb4db69cf24 (patch) | |
tree | 8f5e0b1b9262bec94259be7f7cced50efc33ff63 /IkiWiki/Plugin | |
parent | 2c784773879b228b7dfec2c6d092c9e1e98ab97b (diff) |
drop redir loop detection code
it won't work for incremental builds
for now, relying on browsers to notice loops
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/meta.pm | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/IkiWiki/Plugin/meta.pm b/IkiWiki/Plugin/meta.pm index 134c0ce5d..a0dd66376 100644 --- a/IkiWiki/Plugin/meta.pm +++ b/IkiWiki/Plugin/meta.pm @@ -13,7 +13,6 @@ my %author; my %authorurl; my %license; my %copyright; -my %redirected; sub import { #{{{ hook(type => "preprocess", id => "meta", call => \&preprocess, scan => 1); @@ -71,18 +70,12 @@ sub preprocess (@) { #{{{ } } elsif ($key eq 'redir') { - $redirected{$page}=1; my $safe=0; if ($value =~ /^$config{wiki_link_regexp}$/) { my $link=bestlink($page, $value); if (! length $link) { return "[[meta ".gettext("redir page not found")."]]"; } - if ($redirected{$link}) { - # TODO this is a cheap way of avoiding - # redir cycles, but it is really too strict. - return "[[meta ".gettext("redir to page that itself redirs is not allowed")."]]"; - } $value=urlto($link, $destpage); $safe=1; } |