aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRevanshu Paliwal <revanshu.paliwal@sonarsource.com>2022-12-21 14:55:38 +0100
committersonartech <sonartech@sonarsource.com>2022-12-22 20:03:06 +0000
commit9e0389609390a0f6baf826b877cf0aa8e83fc9c3 (patch)
treeda0ec17609312b0db293791769ce6c45776b3c29
parent7ea29f251f96a40831b89a085c9174024134e71d (diff)
downloadsonarqube-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.ts2
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'],
});
}