Affected by GO-2024-2969
and 3 other vulnerabilities
GO-2024-2969: github.com/gogs/gogs affected by CVE-2024-39930
GO-2024-2970: Gogs allows deletion of internal files in github.com/gogs/gogs
GO-2024-2971: Gogs allows argument injection during the previewing of changes in github.com/gogs/gogs
GO-2024-2972: Gogs allows argument injection during the tagging of a new release in github.com/gogs/gogs
package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Mar 31, 2014
License: BSD-3-Clause
Opens a new window with license information.
Imports: 17
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
It is recommend to use this way
cacheDir := "./cache"
defaultImg := "./default.jpg"
http.Handle("/avatar/", avatar.CacheServer(cacheDir, defaultImg))
http.Handle("/avatar/", avatar.CacheServer("./cache"))
hash email to md5 string
keep this func in order to make this package indenpent
Avatar represents the avatar object.
default image format: jpeg
get image from gravatar.com
type Thunder struct {
QueueSize int
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.