Skip to content

Commit

Permalink
Merge remote-tracking branch 'philo/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Meow committed Mar 17, 2021
2 parents 256decb + 8c881da commit a2e79c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/philomena/search/helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ defmodule Philomena.Search.Helpers do
def to_int(term) do
{int, _} = :string.to_integer(term)

int
case int in -2_147_483_648..2_147_483_647 do
true -> int
_false -> 0
end
end

def range([center, deviation]) do
Expand Down
1 change: 1 addition & 0 deletions lib/philomena_web/plugs/content_security_policy_plug.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ defmodule PhilomenaWeb.ContentSecurityPolicyPlug do
{:form_action, ["'self'"]},
{:manifest_src, ["'self'"]},
{:img_src, ["'self'", "data:", cdn_uri, camo_uri]},
{:media_src, ["'self'", "data:", cdn_uri, camo_uri]},
{:block_all_mixed_content, []}
]

Expand Down

0 comments on commit a2e79c8

Please sign in to comment.