Skip to content

Commit

Permalink
(openvpn client export) add X-Content-Type-Options: nosniff header, c…
Browse files Browse the repository at this point in the history
…loses #1204
  • Loading branch information
AdSchellevis committed Sep 29, 2016
1 parent 888b9a2 commit ab3098d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/www/vpn_openvpn_export.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename={$exp_name}");
header("Content-Length: $exp_size");
header("X-Content-Type-Options: nosniff");
if (($act == "conf") || (substr($act, 0, 10) == "confinline")) {
echo $exp_path;
} else {
Expand Down

0 comments on commit ab3098d

Please sign in to comment.