Commit 3fd0654f by Scott

Fix infinite redirect with missing title

parent ff73e09e
...@@ -58,8 +58,10 @@ ...@@ -58,8 +58,10 @@
if (isset($question)) { if (isset($question)) {
$q_request = qa_q_request($questionid, $question['title']); $q_request = qa_q_request($questionid, $question['title']);
if ($q_request != qa_request()) if (trim($q_request, '/') !== trim(qa_request(), '/')) {
qa_redirect($q_request); //redirect to appropriate URL if the current request URL is incorrect // redirect if the current URL is incorrect
qa_redirect($q_request);
}
$question['extra']=$extravalue; $question['extra']=$extravalue;
......
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