mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 16:10:12 +01:00
🔒 Potential data export disclosure security vulnerability
This commit is contained in:
parent
9db7b49037
commit
f8374201de
1 changed files with 2 additions and 1 deletions
|
|
@ -172,7 +172,8 @@ func rewritePortJSON(pid, port string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func serveExport(ginServer *gin.Engine) {
|
func serveExport(ginServer *gin.Engine) {
|
||||||
ginServer.Static("/export/", filepath.Join(util.TempDir, "export"))
|
exportGroup := ginServer.Group("/export/", model.CheckAuth)
|
||||||
|
exportGroup.Static("/", filepath.Join(util.TempDir, "export"))
|
||||||
}
|
}
|
||||||
|
|
||||||
func serveWidgets(ginServer *gin.Engine) {
|
func serveWidgets(ginServer *gin.Engine) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue