mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-01 13:33:48 +08:00
Go: fix SSRF (#17641)
### Summary Check the URL to prevent SSRF attack. --------- Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -12,6 +12,7 @@ import (
|
||||
)
|
||||
|
||||
func TestNewChatModelDriverPreservesProviderChatSuffix(t *testing.T) {
|
||||
setupAllowAnyHost(t, true)
|
||||
if err := models.InitProviderManager("../../../conf/models"); err != nil {
|
||||
t.Fatalf("InitProviderManager: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user