DataLinks: Sanitize data/panel link URLs (#21140)
* Sanitize html in panel links * Add sanitize-url package * Enable config mocking * Sanitize datalinks urls * Update public/app/core/config.ts * Minor test update * Remove sanitize-url dependency * Remove typings * Review update * Revert "Remove sanitize-url dependency" This reverts commit c4f38e6de64b36fb398f0dc61906ae070d69c5ed. * Revert "Remove typings" This reverts commit 676d47e8c2e46d6eeb57003d0a7e0fd99e75310f. * Sanitaze, don't escape html when sanitizing URL
Showing
... | ... | @@ -202,6 +202,7 @@ |
}, | ||
"dependencies": { | ||
"@babel/polyfill": "7.6.0", | ||
"@braintree/sanitize-url": "4.0.0", | ||
"@grafana/slate-react": "0.22.9-grafana", | ||
"@torkelo/react-select": "2.4.1", | ||
"@types/react-loadable": "5.5.2", | ||
... | ... |
public/app/types/sanitize-url.d.ts
0 → 100644
Please
register
or
sign in
to comment