aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-auth-saml
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-auth-saml')
-rw-r--r--server/sonar-auth-saml/src/main/resources/samlAuthResult.html3
-rw-r--r--server/sonar-auth-saml/src/test/resources/samlAuthResultComplete.html3
-rw-r--r--server/sonar-auth-saml/src/test/resources/samlAuthResultEmpty.html3
3 files changed, 6 insertions, 3 deletions
diff --git a/server/sonar-auth-saml/src/main/resources/samlAuthResult.html b/server/sonar-auth-saml/src/main/resources/samlAuthResult.html
index c6c0108802d..398266b2d29 100644
--- a/server/sonar-auth-saml/src/main/resources/samlAuthResult.html
+++ b/server/sonar-auth-saml/src/main/resources/samlAuthResult.html
@@ -76,6 +76,7 @@
padding: 4px 24px 4px 8px;
vertical-align: top;
font-family: "Courier New", Courier, monospace;
+ white-space: pre-line;
}
#content {
@@ -154,7 +155,7 @@
const valueNode = document.createElement("td");
// wrap in array, to handle single values as well
- valueNode.innerHTML = [].concat(obj[key]).join("<br />");
+ valueNode.textContent = [].concat(obj[key]).join("\r\n");
row.appendChild(valueNode);
tbody.appendChild(row);
diff --git a/server/sonar-auth-saml/src/test/resources/samlAuthResultComplete.html b/server/sonar-auth-saml/src/test/resources/samlAuthResultComplete.html
index fd3b9ac729a..f12552ec361 100644
--- a/server/sonar-auth-saml/src/test/resources/samlAuthResultComplete.html
+++ b/server/sonar-auth-saml/src/test/resources/samlAuthResultComplete.html
@@ -76,6 +76,7 @@
padding: 4px 24px 4px 8px;
vertical-align: top;
font-family: "Courier New", Courier, monospace;
+ white-space: pre-line;
}
#content {
@@ -154,7 +155,7 @@
const valueNode = document.createElement("td");
// wrap in array, to handle single values as well
- valueNode.innerHTML = [].concat(obj[key]).join("<br />");
+ valueNode.textContent = [].concat(obj[key]).join("\r\n");
row.appendChild(valueNode);
tbody.appendChild(row);
diff --git a/server/sonar-auth-saml/src/test/resources/samlAuthResultEmpty.html b/server/sonar-auth-saml/src/test/resources/samlAuthResultEmpty.html
index febbb26026f..6ae670910bd 100644
--- a/server/sonar-auth-saml/src/test/resources/samlAuthResultEmpty.html
+++ b/server/sonar-auth-saml/src/test/resources/samlAuthResultEmpty.html
@@ -76,6 +76,7 @@
padding: 4px 24px 4px 8px;
vertical-align: top;
font-family: "Courier New", Courier, monospace;
+ white-space: pre-line;
}
#content {
@@ -154,7 +155,7 @@
const valueNode = document.createElement("td");
// wrap in array, to handle single values as well
- valueNode.innerHTML = [].concat(obj[key]).join("<br />");
+ valueNode.textContent = [].concat(obj[key]).join("\r\n");
row.appendChild(valueNode);
tbody.appendChild(row);