aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2019-08-10 21:18:26 +0000
committerAriadne Conill <ariadne@dereferenced.org>2019-08-10 21:19:26 +0000
commit9cfc289594c1d2a1b53c99e3e72bba4b6dc615ca (patch)
treed7d1b55c7405237678d4b8525b5bb489d901dc18 /lib
parent17d5564a9ce23eddf89ee809ccf74bd95c3a0b34 (diff)
downloadpleroma-9cfc289594c1d2a1b53c99e3e72bba4b6dc615ca.tar.gz
MRF: ensure that subdomain_match calls are case-insensitive
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/activity_pub/mrf.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/activity_pub/mrf.ex b/lib/pleroma/web/activity_pub/mrf.ex
index dd204b21c..caa2a3231 100644
--- a/lib/pleroma/web/activity_pub/mrf.ex
+++ b/lib/pleroma/web/activity_pub/mrf.ex
@@ -28,7 +28,7 @@ defmodule Pleroma.Web.ActivityPub.MRF do
@spec subdomains_regex([String.t()]) :: [Regex.t()]
def subdomains_regex(domains) when is_list(domains) do
- for domain <- domains, do: ~r(^#{String.replace(domain, "*.", "(.*\\.)*")}$)
+ for domain <- domains, do: ~r(^#{String.replace(domain, "*.", "(.*\\.)*")}$)i
end
@spec subdomain_match?([Regex.t()], String.t()) :: boolean()