diff --git a/docs/common/header.php b/docs/common/header.php index e042891..2c0b857 100755 --- a/docs/common/header.php +++ b/docs/common/header.php @@ -1,4 +1,3 @@ - diff --git a/docs/www/blog/article.php b/docs/www/blog/article.php index f3d0e6f..ee53568 100644 --- a/docs/www/blog/article.php +++ b/docs/www/blog/article.php @@ -400,11 +400,12 @@ if(isset($_POST["submit"])) { // Try to send the comment $commentId = send_comment($conn, $blogId, $posterId, - $commentContent, $parentId); + $commentContent, $parentId); // Redirect to this page with GET - header("Location: http://www.zdenekborovec-dev.cz/blog/article?guid=". + header("Location: http://www.zdenekborovec-dev.cz/blog/article?blogpost_id=". $blogId."#comment-".$commentId); + die(); } // If no ID was entered, display warning and die. diff --git a/docs/www/deleteaccount.php b/docs/www/deleteaccount.php index b16cac3..9167ce5 100644 --- a/docs/www/deleteaccount.php +++ b/docs/www/deleteaccount.php @@ -82,7 +82,9 @@ function delete_user($conn, $confirmString) { } // Redirect to this page with GET - header(sprintf("Location: %s?success=true", sanitize_input($_SERVER["PHP_SELF"]))); + header(sprintf("Location: %s?success=true", + sanitize_input($_SERVER["PHP_SELF"]))); + die(); } if (isset($_POST["submit"])) { diff --git a/docs/www/login.php b/docs/www/login.php index 1540250..3f4ef41 100644 --- a/docs/www/login.php +++ b/docs/www/login.php @@ -96,6 +96,7 @@ if (isset($_POST["submit"])) { // If login succeeded, go to index if($_SESSION["current_user"] != null) { header("Location: "."http://www.zdenekborovec-dev.cz"); + die(); } }