Albirew/nyaa-pantsu
Albirew
/
nyaa-pantsu
Archivé
1
0
Bifurcation 0

Update file.go

Cette révision appartient à :
kilo 2017-11-08 09:39:40 +01:00 révisé par GitHub
Parent 2087c271f3
révision ceb02d1b76
Signature inconnue de Forgejo
ID de la clé GPG: 4AEE18F83AFDEB23
1 fichiers modifiés avec 1 ajouts et 1 suppressions

Voir le fichier

@ -74,7 +74,7 @@ func (f *File) FilenameExtension() string {
fileName := path[len(path)-1]
index := strings.LastIndex(fileName, ".")
if index == -1 {
if index == -1 || index+1 == len(fileName){
return ""
}