Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
kainlite committed Sep 30, 2024
1 parent 1cfc2d4 commit bca7b9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tr_web/live/post_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ defmodule TrWeb.PostLive do

defp decrypt_by_path(_, slug) do
path = Path.join(["./priv/encrypted/#{Gettext.get_locale(TrWeb.Gettext)}", "#{slug}.md"])

Check warning on line 578 in lib/tr_web/live/post_live.ex

View check run for this annotation

Codecov / codecov/patch

lib/tr_web/live/post_live.ex#L578

Added line #L578 was not covered by tests

file = File.read!(path)

Check warning

Code scanning / Sobelow

Directory Traversal in `File` function Warning

Traversal.FileModule: Directory Traversal in File.read!

Check warning on line 580 in lib/tr_web/live/post_live.ex

View check run for this annotation

Codecov / codecov/patch

lib/tr_web/live/post_live.ex#L580

Added line #L580 was not covered by tests

decrypt(file)

Check warning on line 582 in lib/tr_web/live/post_live.ex

View check run for this annotation

Codecov / codecov/patch

lib/tr_web/live/post_live.ex#L582

Added line #L582 was not covered by tests
Expand Down

0 comments on commit bca7b9f

Please sign in to comment.