summaryrefslogtreecommitdiffstats
path: root/pki/dogtag/ca-ui/shared/webapps/ca/ee/ca/srchCert.template
diff options
context:
space:
mode:
Diffstat (limited to 'pki/dogtag/ca-ui/shared/webapps/ca/ee/ca/srchCert.template')
-rw-r--r--pki/dogtag/ca-ui/shared/webapps/ca/ee/ca/srchCert.template13
1 files changed, 10 insertions, 3 deletions
diff --git a/pki/dogtag/ca-ui/shared/webapps/ca/ee/ca/srchCert.template b/pki/dogtag/ca-ui/shared/webapps/ca/ee/ca/srchCert.template
index a7e3f6522..3e7a1059b 100644
--- a/pki/dogtag/ca-ui/shared/webapps/ca/ee/ca/srchCert.template
+++ b/pki/dogtag/ca-ui/shared/webapps/ca/ee/ca/srchCert.template
@@ -126,8 +126,8 @@ function renderDateFromSecs(secs)
year %= 100;
year += 2000;
}
- return (dateTmp.getMonth()+1)+"/"+dateTmp.getDate()+"/"+year+" "+
- (dateTmp.getHours()<10?"&nbsp;":"")+
+ return (dateTmp.getMonth()+1)+"/"+dateTmp.getDate()+"/"+year+" "+
+ (dateTmp.getHours()<10?" ":"")+
dateTmp.getHours()+":"+(dateTmp.getMinutes()<10?"0":"")+
dateTmp.getMinutes()+":"+(dateTmp.getSeconds()<10?"0":"")+
dateTmp.getSeconds();
@@ -179,6 +179,13 @@ function addSpaces(str)
return outStr;
}
+function addEscapes(str)
+{
+ var outStr = str.replace(/</g, "&lt;");
+ outStr = outStr.replace(/>/g, "&gt;");
+ return outStr;
+}
+
function getRevocationReason(revocationReason)
{
var reasons = new Array("Unspecified",
@@ -304,7 +311,7 @@ function displayCertificateRecord(i, cert)
" <a index='"+i+"' href='/ca/ee/ca/displayBySerial?op=displayBySerial&serialNumber=0x"+
cert.serialNumber+"' onmouseover='mouseover(this,event);' "+
"onmouseout='mouseout(this);'>"+
- cert.subject+"</div></font>"+
+ addEscapes(cert.subject)+"</div></font>"+
"</a></td>"+
"</tr>\n"