Skip to content

Commit

Permalink
Limit access to preview file 👻
Browse files Browse the repository at this point in the history
We only want the current user to be able to view the preview file,
to protect against exposing any sensitive information to other users.
  • Loading branch information
pmeinhardt committed Apr 19, 2024
1 parent d11cb68 commit 879dc0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugin/maxdown.vim
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ function! s:preview() abort
let source = expand('%:p')
let dest = expand('~/.maxdown.preview.html')
call s:invoke(dest, source, bufnr('%'))
call setfperm(dest, 'rw-------')
call s:show(dest, expand('%:t'))
endfunction

Expand Down

0 comments on commit 879dc0d

Please sign in to comment.