Merge pull request #151 from grafana/dcech/sanitize-replaceAll
use global replace when sanitizing urls in 8.2.3
This commit is contained in:
@@ -40,5 +40,5 @@ export function escapeHtml(str: string): string {
|
||||
}
|
||||
|
||||
export function sanitizeAngularInterpolation(url: string): string {
|
||||
return url.replace('{{', '%7B%7B').replace('}}', '%7D%7D');
|
||||
return url.replace(/\{\{/g, '%7B%7B').replace(/\}\}/g, '%7D%7D');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user