Apply suggestion to lib/pleroma/plugs/http_security_plug.ex
authorrinpatch <rinpatch@sdf.org>
Fri, 29 May 2020 21:15:07 +0000 (21:15 +0000)
committerrinpatch <rinpatch@sdf.org>
Fri, 29 May 2020 21:15:07 +0000 (21:15 +0000)
lib/pleroma/plugs/http_security_plug.ex

index 4b926e867e02498cf0647f5d1ca7294d4a68a3a5..58907253558c8a2656f31b72e808f0de0db34ccf 100644 (file)
@@ -75,7 +75,7 @@ defmodule Pleroma.Plugs.HTTPSecurityPlug do
         sources = get_proxy_and_attachment_sources()
         {[img_src, sources], [media_src, sources]}
       else
-        {img_src <> " https:", media_src <> " https:"}
+        {[img_src, " https:"], [media_src, " https:"]}
       end
 
     connect_src = ["connect-src 'self' ", static_url, ?\s, websocket_url]