File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -1722,14 +1722,12 @@ func UpdateIssueContent(ctx *context.Context) {
1722
1722
return
1723
1723
}
1724
1724
1725
- content := ctx .FormString ("content" )
1726
- if err := issue_service .ChangeContent (issue , ctx .User , content ); err != nil {
1725
+ if err := issue_service .ChangeContent (issue , ctx .User , ctx .Req .FormValue ("content" )); err != nil {
1727
1726
ctx .ServerError ("ChangeContent" , err )
1728
1727
return
1729
1728
}
1730
1729
1731
- files := ctx .FormStrings ("files[]" )
1732
- if err := updateAttachments (issue , files ); err != nil {
1730
+ if err := updateAttachments (issue , ctx .FormStrings ("files[]" )); err != nil {
1733
1731
ctx .ServerError ("UpdateAttachments" , err )
1734
1732
return
1735
1733
}
@@ -2157,8 +2155,7 @@ func UpdateCommentContent(ctx *context.Context) {
2157
2155
return
2158
2156
}
2159
2157
2160
- files := ctx .FormStrings ("files[]" )
2161
- if err := updateAttachments (comment , files ); err != nil {
2158
+ if err := updateAttachments (comment , ctx .FormStrings ("files[]" )); err != nil {
2162
2159
ctx .ServerError ("UpdateAttachments" , err )
2163
2160
return
2164
2161
}
Original file line number Diff line number Diff line change @@ -1491,8 +1491,7 @@ func ForgotPasswd(ctx *context.Context) {
1491
1491
return
1492
1492
}
1493
1493
1494
- email := ctx .FormString ("email" )
1495
- ctx .Data ["Email" ] = email
1494
+ ctx .Data ["Email" ] = ctx .FormString ("email" )
1496
1495
1497
1496
ctx .Data ["IsResetRequest" ] = true
1498
1497
ctx .HTML (http .StatusOK , tplForgotPassword )
You can’t perform that action at this time.
0 commit comments