From bf53ac4f4b2d182403c21bd8f941cec87ef6e044 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 10 Oct 2023 19:22:05 -0400 Subject: [PATCH] fix: Ensure video src passed to player is sanitized --- shared/editor/components/Video.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shared/editor/components/Video.tsx b/shared/editor/components/Video.tsx index a0e4ad65f..c14275c9c 100644 --- a/shared/editor/components/Video.tsx +++ b/shared/editor/components/Video.tsx @@ -1,5 +1,6 @@ import * as React from "react"; import styled from "styled-components"; +import { sanitizeUrl } from "@shared/utils/urls"; import { ComponentProps } from "../types"; import { ResizeLeft, ResizeRight } from "./ResizeHandle"; import useComponentSize from "./hooks/useComponentSize"; @@ -52,7 +53,7 @@ export default function Video(props: Props) { style={style} >