DF-Wiki / DFWikiFunctions

Dwarf Fortress Wiki modifications and extensions
2 stars 0 forks source link

Infinite recursion can occur with mainspace redirects #2

Closed lethosor closed 10 years ago

lethosor commented 10 years ago

e.g. Foo -> Bar -> Foo The page is saved successfully, but PHP locks up the server as it tries to process the infinite redirect chain. Caused by #1

lethosor commented 10 years ago

As an added bonus, it now respects $wgMaxRedirects in this case as well. Note that the redirect chain is still displayed, up to $wgMaxRedirects - although some chains display strangely, they don't continue forever. Loop 1 -> Loop 2 -> Loop 1 screen shot 2014-03-15 at 2 31 26 pm Loop 1 -> Loop 2 -> Loop 3 -> Loop 1 screen shot 2014-03-15 at 2 32 50 pm