GO-2024-3056: Gitea Cross-site Scripting Vulnerability in code.gitea.io/gitea
package
Version:
v1.22.0
Opens a new window with list of versions in this module.
Published: May 27, 2024
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
type Sitemap struct {
XMLName xml.Name
Namespace string `xml:"xmlns,attr"`
URLs []URL `xml:"url"`
Sitemaps []URL `xml:"sitemap"`
}
Sitemap represents a sitemap
NewSitemap creates a sitemap
NewSitemapIndex creates a sitemap index.
Add adds a URL to the sitemap
WriteTo writes the sitemap to a response
type URL struct {
URL string `xml:"loc"`
LastMod *time.Time `xml:"lastmod,omitempty"`
}
URL represents a single sitemap entry
Source Files
¶
Click to show internal directories.
Click to hide internal directories.