Added XSS prevention
This commit is contained in:
parent
6f397008ee
commit
c5e711ba1f
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue