mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
fix: uncontrolled data used in path expression
This commit is contained in:
parent
226827f21e
commit
013d810678
7 changed files with 24 additions and 7 deletions
|
@ -47,7 +47,7 @@ func EditConfig(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
if _, err := os.Stat(path); os.IsNotExist(err) {
|
||||
if !helper.FileExists(path) {
|
||||
c.JSON(http.StatusNotFound, gin.H{
|
||||
"message": "file not found",
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue