リビジョン | 22b6214f552b0a219b84e828369b2e9dacec5037 (tree) |
---|---|
日時 | 2016-11-18 01:31:12 |
作者 | umorigu <umorigu@gmai...> |
コミッター | umorigu |
BugTrack/2396 Stop page redirection when new_page = old_page
@@ -744,9 +744,11 @@ function manage_page_redirect() { | ||
744 | 744 | } else { |
745 | 745 | die_message('Invalid redirect rule: ' . $rule . '=>' . $replace); |
746 | 746 | } |
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 | + } | |
750 | 752 | } |
751 | 753 | } |
752 | 754 | } |