mirror of
https://github.com/Yanyutin753/ChatGPT-Next-Web-LangChain-Gpt-4-All.git
synced 2025-10-14 07:00:58 +00:00
fix: #188
This commit is contained in:
@@ -519,6 +519,7 @@ export function ImagePreviewer(props: {
|
||||
const updatedContent = markdownContent.replace(
|
||||
/!\[.*?\]\((.*?)\)/g,
|
||||
(match, url) => {
|
||||
if (!url.startsWith("http")) return ``;
|
||||
const updatedURL = `/api/cors?url=${encodeURIComponent(url)}`;
|
||||
return ``;
|
||||
},
|
||||
|
Reference in New Issue
Block a user