fix(api): allow localhost as a valid uri host for applications
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
f81804d57f
commit
49b070d939
@ -426,7 +426,7 @@ defmodule Mobilizon.Web.ApplicationController do
|
||||
|
||||
defp valid_uri?(url) do
|
||||
uri = URI.parse(url)
|
||||
uri.scheme != nil and uri.host =~ "."
|
||||
uri.scheme != nil and (uri.host =~ "." or uri.host == "localhost")
|
||||
end
|
||||
|
||||
@spec append_parameters(String.t(), Enum.t()) :: String.t()
|
||||
|
Loading…
Reference in New Issue
Block a user