Selaa lähdekoodia

Fix reversion caused by 6314 (#6685)

Signed-off-by: Andrew Thornton <art27@cantab.net>
tags/v1.9.0-rc1
zeripath 5 vuotta sitten
vanhempi
commit
6cb127d497
No account linked to committer's email address
1 muutettua tiedostoa jossa 0 lisäystä ja 1 poistoa
  1. 0
    1
      routers/repo/editor.go

+ 0
- 1
routers/repo/editor.go Näytä tiedosto

@@ -273,7 +273,6 @@ func editFilePost(ctx *context.Context, form auth.EditRepoFileForm, isNewFile bo
ctx.RenderWithErr(ctx.Tr("repo.editor.fail_to_update_file", form.TreePath, err), tplEditFile, &form)
}
} else {
ctx.Redirect(ctx.Repo.RepoLink + "/src/branch/" + branchName + "/" + strings.NewReplacer("%", "%25", "#", "%23", " ", "%20", "?", "%3F").Replace(cleanUploadFileName(form.TreePath)))
ctx.Redirect(ctx.Repo.RepoLink + "/src/branch/" + util.PathEscapeSegments(branchName) + "/" + util.PathEscapeSegments(form.TreePath))
}
}

Loading…
Peruuta
Tallenna