]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
命令行 rec停止漏洞
authorqydysky <qydysky@foxmail.com>
Tue, 8 Jun 2021 08:58:26 +0000 (16:58 +0800)
committerqydysky <qydysky@foxmail.com>
Tue, 8 Jun 2021 08:58:26 +0000 (16:58 +0800)
Reply/F.go

index 81f849ac4928edf56157242ef77dbdc13f794a7c..b8947fafaadfb6b5998b51e11985cceb45464fae 100644 (file)
@@ -1981,7 +1981,7 @@ func init() {
                                        return
                                }
 
-                               if strings.Contains(path, filepath.Base(savestream.path)) {
+                               if savestream.path != "" && strings.Contains(path, filepath.Base(savestream.path)) {
                                        w.Header().Set("Server", "live")
                                        if filepath.Ext(path) == `.dtmp` {
                                                if strings.Contains(path,".flv") {