From 70803d796601428f52f585d6fdd3b218f5f3912c Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Sat, 11 Mar 2023 18:24:44 +0000 Subject: [PATCH 1/2] Remove mix.env reference --- lib/pleroma/web/plugs/http_security_plug.ex | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/pleroma/web/plugs/http_security_plug.ex b/lib/pleroma/web/plugs/http_security_plug.ex index 6841b13aa..b1f1ada94 100644 --- a/lib/pleroma/web/plugs/http_security_plug.ex +++ b/lib/pleroma/web/plugs/http_security_plug.ex @@ -116,8 +116,6 @@ defp csp_string(conn) do script_src = "script-src 'self' '#{nonce_tag}'" - script_src = if Mix.env() == :dev, do: [script_src, " 'unsafe-eval'"], else: script_src - report = if report_uri, do: ["report-uri ", report_uri, ";report-to csp-endpoint"] insecure = if scheme == "https", do: "upgrade-insecure-requests" From 58f75ac062aa54a139125c1742f3fe59563a345b Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Sat, 11 Mar 2023 18:24:57 +0000 Subject: [PATCH 2/2] patch version --- mix.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index 8d8f4b5b9..098ea15b0 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule Pleroma.Mixfile do def project do [ app: :pleroma, - version: version("3.7.0"), + version: version("3.7.1"), elixir: "~> 1.12", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix] ++ Mix.compilers(),