Commit 1775bcdd by Amiya Committed by Scott

fixed #253

This fix checks for the question url . If it does not match with the
current URL then redirect to the correct one
parent 535c56f1
...@@ -56,6 +56,11 @@ ...@@ -56,6 +56,11 @@
$question=null; $question=null;
if (isset($question)) { if (isset($question)) {
$q_request = qa_q_request($questionid, $question['title']);
if ($q_request != qa_request())
qa_redirect($q_request); //redirect to appropriate URL if the current request URL is incorrect
$question['extra']=$extravalue; $question['extra']=$extravalue;
$answers=qa_page_q_load_as($question, $childposts); $answers=qa_page_q_load_as($question, $childposts);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment