]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-17296 improve the handlign of the SAML Response attributes in the configuration...
authorMatteo Mara <matteo.mara@sonarsource.com>
Fri, 23 Sep 2022 11:47:01 +0000 (13:47 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 23 Sep 2022 20:02:51 +0000 (20:02 +0000)
server/sonar-auth-saml/src/main/resources/samlAuthResult.html
server/sonar-auth-saml/src/test/resources/samlAuthResultComplete.html
server/sonar-auth-saml/src/test/resources/samlAuthResultEmpty.html

index c6c0108802d4f4c62d86d220aa4c05b40f21a8bf..398266b2d29de2177d57ca63f564294d74853e88 100644 (file)
@@ -76,6 +76,7 @@
         padding: 4px 24px 4px 8px;
         vertical-align: top;
         font-family: "Courier New", Courier, monospace;
+        white-space: pre-line;
       }
 
       #content {
 
           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);
index fd3b9ac729a087126c12daa2221e6aa32f5eeae4..f12552ec3612d766fb1e4ca85c045929e9856507 100644 (file)
@@ -76,6 +76,7 @@
         padding: 4px 24px 4px 8px;
         vertical-align: top;
         font-family: "Courier New", Courier, monospace;
+        white-space: pre-line;
       }
 
       #content {
 
           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);
index febbb26026f386252224a82aa2cbaa4be7761712..6ae670910bdb753e85218b28ed9f36dc22844695 100644 (file)
@@ -76,6 +76,7 @@
         padding: 4px 24px 4px 8px;
         vertical-align: top;
         font-family: "Courier New", Courier, monospace;
+        white-space: pre-line;
       }
 
       #content {
 
           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);