mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Remove check for negative length (#5120)
This commit is contained in:
		
				
					committed by
					
						
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							583b1b8429
						
					
				
				
					commit
					5a4648cdd6
				
			@@ -36,7 +36,7 @@ func SignedInID(ctx *macaron.Context, sess session.Store) int64 {
 | 
			
		||||
	// Check access token.
 | 
			
		||||
	if IsAPIPath(ctx.Req.URL.Path) {
 | 
			
		||||
		tokenSHA := ctx.Query("token")
 | 
			
		||||
		if len(tokenSHA) <= 0 {
 | 
			
		||||
		if len(tokenSHA) == 0 {
 | 
			
		||||
			tokenSHA = ctx.Query("access_token")
 | 
			
		||||
		}
 | 
			
		||||
		if len(tokenSHA) == 0 {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user