summary refs log tree commit diff
path: root/synapse/res
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2020-03-13 19:09:22 +0000
committerBrendan Abolivier <babolivier@matrix.org>2020-03-13 19:09:22 +0000
commitebfcbbff9c75ee3e3009b04ba5388c33f2d7e8da (patch)
treed9ca160eeab7aa42e8d33a6473fe4f28a7312fcb /synapse/res
parentLint (diff)
downloadsynapse-ebfcbbff9c75ee3e3009b04ba5388c33f2d7e8da.tar.xz
Use innerText instead of innerHTML
Diffstat (limited to 'synapse/res')
-rw-r--r--synapse/res/templates/saml_error.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/res/templates/saml_error.html b/synapse/res/templates/saml_error.html
index 223d3a74bc..bfd6449c5d 100644
--- a/synapse/res/templates/saml_error.html
+++ b/synapse/res/templates/saml_error.html
@@ -37,7 +37,8 @@
         // to print one.
         let errorDesc = new URLSearchParams(searchStr).get("error_description")
         if (errorDesc) {
-            document.getElementById("errormsg").innerHTML = ` ("${errorDesc}")`;
+
+            document.getElementById("errormsg").innerText = ` ("${errorDesc}")`;
         }
     </script>
 </body>