We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.4.5Beta
v18.12.1
go 1.18
可以
1.正常部署,选择断点上传,上传失败。 2.原因在于默认的const变量是: const ( breakpointDir = "./breakpointDir/" finishDir = "./fileDir/" ) (breakpoint_continue.go 第16行) 出于安全考虑在上传的时候判断是否./: if strings.Index(fileName, "./") > -1 || strings.Index(FileDir, "./") > -1 { return "", errors.New("文件名或路径不合法") } (breakpoint_continue.go 第57行) 所以拼接上必然会非法。
我临时把breakpointDir = "./breakpointDir/"换成了breakpointDir = "breakpointDir/",就成功了。
The text was updated successfully, but these errors were encountered:
[fixed]:解决路径判断的错误 flipped-aurora#1304
aeea214
d6cf86f
piexlmax
SliverHorn
songzhibin97
bypanghu
No branches or pull requests
gin-vue-admin 版本
2.4.5Beta
Node 版本
v18.12.1
Golang 版本
go 1.18
是否依旧存在
可以
bug描述
1.正常部署,选择断点上传,上传失败。
2.原因在于默认的const变量是:
const (
breakpointDir = "./breakpointDir/"
finishDir = "./fileDir/"
)
(breakpoint_continue.go 第16行)
出于安全考虑在上传的时候判断是否./:
if strings.Index(fileName, "./") > -1 || strings.Index(FileDir, "./") > -1 {
return "", errors.New("文件名或路径不合法")
}
(breakpoint_continue.go 第57行)
所以拼接上必然会非法。
修改建议
我临时把breakpointDir = "./breakpointDir/"换成了breakpointDir = "breakpointDir/",就成功了。
The text was updated successfully, but these errors were encountered: