Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
6dfa92bb1c | ||
|
151bedab52 | ||
|
6198403fbc | ||
|
a6290f603f | ||
2f09e5775f |
12
CHANGELOG.md
12
CHANGELOG.md
@ -4,6 +4,16 @@ This changelog goes through all the changes that have been made in each release
|
|||||||
without substantial changes to our git log; to see the highlights of what has
|
without substantial changes to our git log; to see the highlights of what has
|
||||||
been added to each release, please refer to the [blog](https://blog.gitea.io).
|
been added to each release, please refer to the [blog](https://blog.gitea.io).
|
||||||
|
|
||||||
|
## [1.13.6](https://github.com/go-gitea/gitea/releases/tag/v1.13.6) - 2021-03-23
|
||||||
|
|
||||||
|
* SECURITY
|
||||||
|
* Fix bug on avatar middleware (#15124) (#15125)
|
||||||
|
* Fix another clusterfuzz identified issue (#15096) (#15114)
|
||||||
|
* API
|
||||||
|
* Fix nil exeption for get pull reviews API #15104 (#15106)
|
||||||
|
* BUGFIXES
|
||||||
|
* Fix markdown rendering in milestone content (#15056) (#15092)
|
||||||
|
|
||||||
## [1.13.5](https://github.com/go-gitea/gitea/releases/tag/v1.13.5) - 2021-03-21
|
## [1.13.5](https://github.com/go-gitea/gitea/releases/tag/v1.13.5) - 2021-03-21
|
||||||
|
|
||||||
* SECURITY
|
* SECURITY
|
||||||
@ -228,7 +238,7 @@ been added to each release, please refer to the [blog](https://blog.gitea.io).
|
|||||||
* Fix scrolling to resolved comment anchors (#13343) (#13371)
|
* Fix scrolling to resolved comment anchors (#13343) (#13371)
|
||||||
* Storage configuration support `[storage]` (#13314) (#13379)
|
* Storage configuration support `[storage]` (#13314) (#13379)
|
||||||
* When creating line diffs do not split within an html entity (#13357) (#13375) (#13425) (#13427)
|
* When creating line diffs do not split within an html entity (#13357) (#13375) (#13425) (#13427)
|
||||||
* Fix reactions on code comments (#13390) (#13401)
|
* Fix reactions on code comments (#13390) (#13401)
|
||||||
* Add missing full names when DEFAULT_SHOW_FULL_NAME is enabled (#13424)
|
* Add missing full names when DEFAULT_SHOW_FULL_NAME is enabled (#13424)
|
||||||
* Replies to outdated code comments should also be outdated (#13217) (#13433)
|
* Replies to outdated code comments should also be outdated (#13217) (#13433)
|
||||||
* Fix panic bug in handling multiple references in commit (#13486) (#13487)
|
* Fix panic bug in handling multiple references in commit (#13486) (#13487)
|
||||||
|
@ -13,6 +13,10 @@ import (
|
|||||||
// ToUser convert models.User to api.User
|
// ToUser convert models.User to api.User
|
||||||
// signed shall only be set if requester is logged in. authed shall only be set if user is site admin or user himself
|
// signed shall only be set if requester is logged in. authed shall only be set if user is site admin or user himself
|
||||||
func ToUser(user *models.User, signed, authed bool) *api.User {
|
func ToUser(user *models.User, signed, authed bool) *api.User {
|
||||||
|
if user == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
result := &api.User{
|
result := &api.User{
|
||||||
ID: user.ID,
|
ID: user.ID,
|
||||||
UserName: user.Name,
|
UserName: user.Name,
|
||||||
|
@ -312,7 +312,7 @@ func (ctx *postProcessCtx) postProcess(rawHTML []byte) ([]byte, error) {
|
|||||||
_, _ = res.WriteString("<html><body>")
|
_, _ = res.WriteString("<html><body>")
|
||||||
|
|
||||||
// Strip out nuls - they're always invalid
|
// Strip out nuls - they're always invalid
|
||||||
_, _ = nulCleaner.WriteString(res, string(tagCleaner.ReplaceAll(rawHTML, []byte("<$1"))))
|
_, _ = res.Write(tagCleaner.ReplaceAll([]byte(nulCleaner.Replace(string(rawHTML))), []byte("<$1")))
|
||||||
|
|
||||||
// close the tags
|
// close the tags
|
||||||
_, _ = res.WriteString("</body></html>")
|
_, _ = res.WriteString("</body></html>")
|
||||||
|
@ -13,6 +13,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
"text/template"
|
"text/template"
|
||||||
"time"
|
"time"
|
||||||
@ -152,12 +153,21 @@ func storageHandler(storageSetting setting.Storage, prefix string, objStore stor
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if !strings.HasPrefix(req.URL.RequestURI(), "/"+prefix) {
|
prefix := strings.Trim(prefix, "/")
|
||||||
|
|
||||||
|
if !strings.HasPrefix(req.URL.EscapedPath(), "/"+prefix+"/") {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
rPath := strings.TrimPrefix(req.URL.EscapedPath(), "/"+prefix+"/")
|
||||||
|
|
||||||
rPath := strings.TrimPrefix(req.URL.RequestURI(), "/"+prefix)
|
|
||||||
rPath = strings.TrimPrefix(rPath, "/")
|
rPath = strings.TrimPrefix(rPath, "/")
|
||||||
|
if rPath == "" {
|
||||||
|
ctx.Error(404, "file not found")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
rPath = path.Clean("/" + filepath.ToSlash(rPath))
|
||||||
|
rPath = rPath[1:]
|
||||||
|
|
||||||
//If we have matched and access to release or issue
|
//If we have matched and access to release or issue
|
||||||
fr, err := objStore.Open(rPath)
|
fr, err := objStore.Open(rPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
<div class="ui container">
|
<div class="ui container">
|
||||||
<div class="ui three column stackable grid">
|
<div class="ui three column stackable grid">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<h3>{{.Milestone.Name}}</h3>
|
<h1>{{.Milestone.Name}}</h1>
|
||||||
<div class="content">
|
<div class="markdown content">
|
||||||
{{.Milestone.RenderedContent|Str2html}}
|
{{.Milestone.RenderedContent|Str2html}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
<div class="milestone list">
|
<div class="milestone list">
|
||||||
{{range .Milestones}}
|
{{range .Milestones}}
|
||||||
<li class="item">
|
<li class="item">
|
||||||
{{svg "octicon-milestone"}} <a href="{{$.RepoLink}}/milestone/{{.ID}}">{{.Name}}</a>
|
{{svg "octicon-milestone" 16 "mr-2"}} <a href="{{$.RepoLink}}/milestone/{{.ID}}">{{.Name}}</a>
|
||||||
<div class="ui right green progress" data-percent="{{.Completeness}}">
|
<div class="ui right green progress" data-percent="{{.Completeness}}">
|
||||||
<div class="bar" {{if not .Completeness}}style="background-color: transparent"{{end}}>
|
<div class="bar" {{if not .Completeness}}style="background-color: transparent"{{end}}>
|
||||||
<div class="progress"></div>
|
<div class="progress"></div>
|
||||||
@ -80,7 +80,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if .Content}}
|
{{if .Content}}
|
||||||
<div class="content">
|
<div class="markdown content">
|
||||||
{{.RenderedContent|Str2html}}
|
{{.RenderedContent|Str2html}}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -1320,6 +1320,7 @@
|
|||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: #4078c0;
|
color: #4078c0;
|
||||||
|
Reference in New Issue
Block a user