Procházet zdrojové kódy

Use innerText instead of innerHTML

Brendan Abolivier před 4 roky
rodič
revize
ebfcbbff9c
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      synapse/res/templates/saml_error.html

+ 2 - 1
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>