Skip to content

Commit

Permalink
fix: render image paths in markdown gracefully (langfuse#2711)
Browse files Browse the repository at this point in the history
  • Loading branch information
marliessophie authored Jul 23, 2024
1 parent 2d2c3c5 commit 31fb4b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/server/api/routers/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const isValidImageUrl = async (url: string): Promise<boolean> => {

export const utilsRouter = createTRPCRouter({
validateImgUrl: protectedProcedure
.input(z.string().url().max(2048))
.input(z.string().max(2048))
.query(async ({ input: url }) => {
const isValidUrl = await isValidAndSecureUrl(url);
if (!isValidUrl) {
Expand Down

0 comments on commit 31fb4b4

Please sign in to comment.