From 715a51c548f36ab2dca1fd61723f2f0b45e67a18 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sun, 14 Oct 2001 18:22:32 +0000 Subject: Various changes to location redirection ... please note the format and name changes git-svn-id: file:///svn/phpbb/trunk@1190 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/posting.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'phpBB/posting.php') diff --git a/phpBB/posting.php b/phpBB/posting.php index 6793b8364f..359d3b11eb 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -94,21 +94,25 @@ if( $cancel ) { if($post_id != "") { - $redirect = "viewtopic.$phpEx?" . POST_POST_URL . "=$post_id#$post_id"; + $redirect = "viewtopic.$phpEx?" . POST_POST_URL . "=$post_id"; + $post_append = "#$post_id"; } else if($topic_id != "") { $redirect = "viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id"; + $post_append = ""; } else if($forum_id != "") { $redirect = "viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"; + $post_append = ""; } else { $redirect = "index.$phpEx"; + $post_append = ""; } - header("Location:" . append_sid($redirect)); + header("Location:" . append_sid($redirect) . $post_append, true); } // // Continue var definitions @@ -416,7 +420,7 @@ if( !$is_auth[$is_auth_type] ) break; } - header("Location: " . append_sid("login.$phpEx?forward_page=posting.$phpEx&" . $redirect)); + header("Location: " . append_sid("login.$phpEx?redirect=posting.$phpEx&" . $redirect, true)); } else @@ -1201,7 +1205,7 @@ if( ( $submit || $confirm || $mode == "delete" ) && !$error ) } else { - header("Location: " . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id")); + header("Location: " . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id", true)); } } else -- cgit v1.2.1