Project

General

Profile

Defect #29055 ยป fix-29055.patch

Go MAEDA, 2019-03-02 07:35

View differences:

app/controllers/search_controller.rb
end
# quick jump to an issue
if (m = @question.match(/^#?(\d+)$/)) && (issue = Issue.visible.find_by_id(m[1].to_i))
if !api_request? && (m = @question.match(/^#?(\d+)$/)) && (issue = Issue.visible.find_by_id(m[1].to_i))
redirect_to issue_path(issue)
return
end
test/functional/search_controller_test.rb
assert_response :success
end
def test_should_not_quick_jump_for_api_requests
get '/search.xml', :params => {:q => '3'}
assert_response :success
end
def test_large_integer
get :index, :params => {:q => '4615713488'}
assert_response :success
    (1-1/1)