• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisão22b6214f552b0a219b84e828369b2e9dacec5037 (tree)
Hora2016-11-18 01:31:12
Autorumorigu <umorigu@gmai...>
Commiterumorigu

Mensagem de Log

BugTrack/2396 Stop page redirection when new_page = old_page

Mudança Sumário

Diff

--- a/lib/func.php
+++ b/lib/func.php
@@ -744,9 +744,11 @@ function manage_page_redirect() {
744744 } else {
745745 die_message('Invalid redirect rule: ' . $rule . '=>' . $replace);
746746 }
747- header('Location: ' . get_script_uri() . '?' .
748- pagename_urlencode($new_page));
749- return TRUE;
747+ if ($page !== $new_page) {
748+ header('Location: ' . get_script_uri() . '?' .
749+ pagename_urlencode($new_page));
750+ return TRUE;
751+ }
750752 }
751753 }
752754 }