Added XSS prevention

pull/1/head
root 16 years ago
parent 6f397008ee
commit c5e711ba1f

@ -38,7 +38,9 @@
{
header("Content-Type: application/x-x509-user-cert");
header("Content-Length: ".strlen($cert));
header('Content-Disposition: inline; filename="'.$row['CN'].'.crt"');
$fname=sanitizeFilename($row['CN']);
if($fname=="") $fname="certificate";
header('Content-Disposition: inline; filename="'.$fname.'.crt"');
echo $cert;
exit;
} else {

Loading…
Cancel
Save