mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Avoid double-unescaping of form value (#26853)
1. The old `prepareQueryArg` did double-unescaping of form value. 2. By the way, remove the unnecessary `ctx.Flash = ...` in `MockContext`. Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
		@@ -234,7 +234,7 @@ func TestAPISearchIssues(t *testing.T) {
 | 
			
		||||
	DecodeJSON(t, resp, &apiIssues)
 | 
			
		||||
	assert.Len(t, apiIssues, expectedIssueCount)
 | 
			
		||||
 | 
			
		||||
	since := "2000-01-01T00%3A50%3A01%2B00%3A00" // 946687801
 | 
			
		||||
	since := "2000-01-01T00:50:01+00:00" // 946687801
 | 
			
		||||
	before := time.Unix(999307200, 0).Format(time.RFC3339)
 | 
			
		||||
	query.Add("since", since)
 | 
			
		||||
	query.Add("before", before)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user