mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-30 22:11:07 +00:00 
			
		
		
		
	Merge branch 'develop' of github.com:gogits/gogs into feature/page_issues
This commit is contained in:
		
				commit
				
					
						54b58e988d
					
				
			
		
					 49 changed files with 87 additions and 65 deletions
				
			
		|  | @ -185,6 +185,7 @@ func EditUserPost(ctx *middleware.Context, form auth.AdminEditUserForm) { | |||
| 		u.EncodePasswd() | ||||
| 	} | ||||
| 
 | ||||
| 	u.FullName = form.FullName | ||||
| 	u.Email = form.Email | ||||
| 	u.Website = form.Website | ||||
| 	u.Location = form.Location | ||||
|  |  | |||
|  | @ -27,7 +27,6 @@ func ServeBlob(ctx *middleware.Context, blob *git.Blob) error { | |||
| 
 | ||||
| 	_, isTextFile := base.IsTextFile(buf) | ||||
| 	_, isImageFile := base.IsImageFile(buf) | ||||
| 	ctx.Resp.Header().Set("Content-Type", "text/plain") | ||||
| 	if !isTextFile && !isImageFile { | ||||
| 		ctx.Resp.Header().Set("Content-Disposition", "attachment; filename="+path.Base(ctx.Repo.TreeName)) | ||||
| 		ctx.Resp.Header().Set("Content-Transfer-Encoding", "binary") | ||||
|  |  | |||
|  | @ -152,6 +152,7 @@ func ShowSSHKeys(ctx *middleware.Context, uid int64) { | |||
| 	var buf bytes.Buffer | ||||
| 	for i := range keys { | ||||
| 		buf.WriteString(keys[i].OmitEmail()) | ||||
| 		buf.WriteString("\n") | ||||
| 	} | ||||
| 	ctx.RenderData(200, buf.Bytes()) | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue