GO-2024-3056 : Gitea Cross-site Scripting Vulnerability in code.gitea.io/gitea
Discover Packages
code.gitea.io/gitea
modules
svg
package
Version:
v1.21.8
Opens a new window with list of versions in this module.
Published: Mar 13, 2024
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
Documentation
Documentation
¶
Init discovers SVG icons and populates the `svgIcons` variable
Normalize normalizes the SVG content: set default width/height, remove unnecessary tags/attributes
It's designed to work with valid SVG content. For invalid SVG content, the returned content is not guaranteed.
RenderHTML renders icons - arguments icon name (string), size (int), class (string)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.