RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
For security. (#3642)
Kevin Hu3df1663e4f7a
diff --git a/agent/component/crawler.py b/agent/component/crawler.pyindex f0012d71d4..151942b659 100644--- a/agent/component/crawler.py+++ b/agent/component/crawler.py@@ -17,6 +17,7 @@ from abc import ABCimport asynciofrom crawl4ai import AsyncWebCrawlerfrom agent.component.base import ComponentBase, ComponentParamBase+from api.utils.web_utils import is_valid_urlclass CrawlerParam(ComponentParamBase):@@ -39,7 +40,7 @@ class Crawler(ComponentBase, ABC):def _run(self, history, **kwargs):ans = self.get_input()ans = " - ".join(ans["content"]) if "content" in ans else ""- if not ans:+ if not is_valid_url(ans):return Crawler.be_output("")try:result = asyncio.run(self.get_web(ans))