This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
#687
add ".png" check
tags/v1.21.12.1^2
chenyifan01
4 years ago
parent
2da173361f
commit
efec821fa9
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
models/user.go
+ 3
- 0
models/user.go
View File
@@ -955,6 +955,9 @@ func isUsableName(names, patterns []string, name string) error {
if name == names[i] {
return ErrNameReserved{name}
}
if strings.HasSuffix(name, ".png") {
return ErrNameReserved{name}
}
}
for _, pat := range patterns {
Write
Preview
Loading…
Cancel
Save