You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.3 KiB
32 lines
1.3 KiB
From 05df8dcac715113517b81b1995ab1f0b69017f4a Mon Sep 17 00:00:00 2001
|
|
From: ismail simsek <ismailsimsek09@gmail.com>
|
|
Date: Thu, 16 Mar 2023 23:16:03 +0100
|
|
Subject: [PATCH] graphite functions xss
|
|
|
|
commit e59427c074
|
|
[v9.2.x] Fix xss in Graphite functions tooltip (#810)
|
|
|
|
Fix xss in Graphite functions tooltip (#804)
|
|
|
|
(cherry picked from commit 87aad3f11836f810ee1fdfee27827e746ef36055)
|
|
|
|
Co-authored-by: Ludovic Viaud <ludovic.viaud@gmail.com>
|
|
|
|
diff --git a/public/app/plugins/datasource/graphite/components/FunctionEditorControls.tsx b/public/app/plugins/datasource/graphite/components/FunctionEditorControls.tsx
|
|
index facd0b2511..d4d41da720 100644
|
|
--- a/public/app/plugins/datasource/graphite/components/FunctionEditorControls.tsx
|
|
+++ b/public/app/plugins/datasource/graphite/components/FunctionEditorControls.tsx
|
|
@@ -11,11 +11,9 @@ export interface FunctionEditorControlsProps {
|
|
}
|
|
|
|
const FunctionDescription = React.lazy(async () => {
|
|
- // @ts-ignore
|
|
- const { default: rst2html } = await import(/* webpackChunkName: "rst2html" */ 'rst2html');
|
|
return {
|
|
default(props: { description?: string }) {
|
|
- return <div dangerouslySetInnerHTML={{ __html: rst2html(props.description ?? '') }} />;
|
|
+ return <div>{props.description}</div>;
|
|
},
|
|
};
|
|
});
|