From 375fdf887c5b56a850c1cd956f9fefbe6955578a Mon Sep 17 00:00:00 2001 From: posweg Date: Thu, 21 May 2020 20:29:28 +0000 Subject: [PATCH] Fix error on publishing single quotes --- action/publish-question.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/action/publish-question.php b/action/publish-question.php index ae68021..f57a9d6 100644 --- a/action/publish-question.php +++ b/action/publish-question.php @@ -1,5 +1,6 @@ exec("INSERT INTO questions(user,by,question,answered,date) VALUES ('$u','$by','$question',0,". strtotime('now') .");"); unset($_POST["post-text"]); - header("Location: /user/" . $p_user["username"]); + if($fancy_urls) header("Location: /user/" . $p_user["username"]); + else header("Location: /user.php?q=" . $p_user["username"]); } } ?>