Affected by GO-2026-4421
and 7 other vulnerabilities
GO-2026-4421: Apache Answer Exposure of Private Personal Information to an Unauthorized Actor vulnerability in github.com/apache/answer
GO-2026-6147: Apache Answer has an Improper Neutralization of Alternate XSS Syntax vulnerability in github.com/apache/answer
GO-2026-6148: Apache Answer has an Exposure of Private Personal Information to an Unauthorized Actor vulnerability in github.com/apache/answer
GO-2026-6151: Apache Answer vulnerable to Cross-site Scripting in github.com/apache/answer
GO-2026-6152: Apache Answer has an Exposure of Sensitive Information to an Unauthorized Actor vulnerability in github.com/apache/answer
GO-2026-6153: Apache Answer has an Unrestricted Upload of File with Dangerous Type vulnerability in github.com/apache/answer
GO-2026-6154: Apache Answer has an Unrestricted Upload of File with Dangerous Type vulnerability in github.com/apache/answer
GO-2026-6249: Apache Answer: AdminToken not invalidated after admin deactivation in github.com/apache/answer
package
Version:
v1.4.5
Opens a new window with list of versions in this module.
Published: Mar 18, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 21
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
ProviderSetServer is providers.
func NewHTTPServer(debug bool,
staticRouter *router.StaticRouter,
answerRouter *router.AnswerAPIRouter,
swaggerRouter *router.SwaggerRouter,
viewRouter *router.UIRouter,
authUserMiddleware *middleware.AuthUserMiddleware,
avatarMiddleware *middleware.AvatarMiddleware,
shortIDMiddleware *middleware.ShortIDMiddleware,
templateRouter *router.TemplateRouter,
pluginAPIRouter *router.PluginAPIRouter,
uiConf *UI,
) *gin.Engine
NewHTTPServer new http server.
type HTTP struct {
Addr string `json:"addr" mapstructure:"addr"`
}
HTTP http config
type UI struct {
BaseURL string `json:"base_url" mapstructure:"base_url" yaml:"base_url"`
APIBaseURL string `json:"api_base_url" mapstructure:"api_base_url" yaml:"api_base_url"`
}
UI ui config
Source Files
¶
Click to show internal directories.
Click to hide internal directories.