Skip to content

Commit f401ca5

Browse files
committed
修复在内容编辑页面,音视频无法播放的问题
1 parent b6bbcb5 commit f401ca5

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

controllers/StaticController.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func (this *StaticController) Uploads() {
4949
}
5050
}
5151

52-
if utils.IsSignUsed(sign) {
52+
if sign != "" && utils.IsSignUsed(sign) {
5353
this.Abort("404")
5454
}
5555
}

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ require (
2727
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
2828
github.com/russross/blackfriday v2.0.0+incompatible
2929
github.com/satori/go.uuid v1.2.0 // indirect
30+
github.com/shiena/ansicolor v0.0.0-20200904210342-c7312218db18 // indirect
3031
github.com/smartystreets/goconvey v1.6.4 // indirect
3132
github.com/stretchr/testify v1.6.1 // indirect
3233
github.com/unknwon/com v1.0.1

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww=
226226
github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
227227
github.com/shiena/ansicolor v0.0.0-20151119151921-a422bbe96644 h1:X+yvsM2yrEktyI+b2qND5gpH8YhURn0k8OCaeRnkINo=
228228
github.com/shiena/ansicolor v0.0.0-20151119151921-a422bbe96644/go.mod h1:nkxAfR/5quYxwPZhyDxgasBMnRtBZd0FCEpawpjMUFg=
229+
github.com/shiena/ansicolor v0.0.0-20200904210342-c7312218db18 h1:DAYUYH5869yV94zvCES9F51oYtN5oGlwjxJJz7ZCnik=
230+
github.com/shiena/ansicolor v0.0.0-20200904210342-c7312218db18/go.mod h1:nkxAfR/5quYxwPZhyDxgasBMnRtBZd0FCEpawpjMUFg=
229231
github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo=
230232
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
231233
github.com/siddontang/go v0.0.0-20170517070808-cb568a3e5cc0/go.mod h1:3yhqj7WBBfRhbBlzyOC3gUxftwsU0u8gqevxwIHQpMw=

0 commit comments

Comments
 (0)