diff options
Diffstat (limited to 'pki/dogtag/ca-ui/shared/webapps/ca/ee/ca/displayBySerial.template')
-rw-r--r-- | pki/dogtag/ca-ui/shared/webapps/ca/ee/ca/displayBySerial.template | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pki/dogtag/ca-ui/shared/webapps/ca/ee/ca/displayBySerial.template b/pki/dogtag/ca-ui/shared/webapps/ca/ee/ca/displayBySerial.template index ca886b4cf..e01e4e123 100644 --- a/pki/dogtag/ca-ui/shared/webapps/ca/ee/ca/displayBySerial.template +++ b/pki/dogtag/ca-ui/shared/webapps/ca/ee/ca/displayBySerial.template @@ -33,6 +33,13 @@ function navMajorVersion() return parseInt(navigator.appVersion.substring(0, navigator.appVersion.indexOf("."))); } +function addEscapes(str) +{ + var outStr = str.replace(/</g, "<"); + outStr = outStr.replace(/>/g, ">"); + return outStr; +} + function toHex(number) { var absValue = "", sign = ""; @@ -80,7 +87,7 @@ Certificate contents</font></td></tr></table> <pre> <SCRIPT LANGUAGE="JavaScript"> -document.write(result.header.certPrettyPrint); +document.write(addEscapes(result.header.certPrettyPrint)); </SCRIPT> </pre> |