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 c4f38e6de6.

* Revert "Remove typings"

This reverts commit 676d47e8c2.

* Sanitaze, don't escape html when sanitizing URL
This commit is contained in:
Dominik Prokop
2019-12-18 11:31:11 +01:00
committed by GitHub
parent 475bd7ad09
commit 26aa1f0cca
10 changed files with 76 additions and 42 deletions
+1
View File
@@ -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",