diff --git a/pages/account/6.php b/pages/account/6.php index e02035d..38af8e8 100644 --- a/pages/account/6.php +++ b/pages/account/6.php @@ -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 {