diff options
author | Revanshu Paliwal <revanshu.paliwal@sonarsource.com> | 2022-12-21 14:55:38 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-12-22 20:03:06 +0000 |
commit | 9e0389609390a0f6baf826b877cf0aa8e83fc9c3 (patch) | |
tree | da0ec17609312b0db293791769ce6c45776b3c29 | |
parent | 7ea29f251f96a40831b89a085c9174024134e71d (diff) | |
download | sonarqube-9e0389609390a0f6baf826b877cf0aa8e83fc9c3.tar.gz sonarqube-9e0389609390a0f6baf826b877cf0aa8e83fc9c3.zip |
SONAR-17579 Allowing rel attribute for external links
-rw-r--r-- | server/sonar-web/src/main/js/helpers/sanitize.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/helpers/sanitize.ts b/server/sonar-web/src/main/js/helpers/sanitize.ts index 007104385bc..20a71d1fb16 100644 --- a/server/sonar-web/src/main/js/helpers/sanitize.ts +++ b/server/sonar-web/src/main/js/helpers/sanitize.ts @@ -52,6 +52,6 @@ export function sanitizeUserInput(html: string) { 'blockquote', 'pre', ], - ALLOWED_ATTR: ['target', 'href'], + ALLOWED_ATTR: ['target', 'href', 'rel'], }); } |