From 83c657afa557ac3cdfd2e3888511b403857de8aa Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Wed, 14 Jun 2017 14:46:18 +0200 Subject: Do some basic escaping. --- lib/pleroma/web/twitter_api/utils.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/pleroma/web/twitter_api/utils.ex b/lib/pleroma/web/twitter_api/utils.ex index 65d893869..5cbe0cf9c 100644 --- a/lib/pleroma/web/twitter_api/utils.ex +++ b/lib/pleroma/web/twitter_api/utils.ex @@ -11,7 +11,7 @@ defmodule Pleroma.Web.TwitterAPI.Utils do def add_attachments(text, attachments) do attachment_text = Enum.map(attachments, fn (%{"url" => [%{"href" => href} | _]}) -> - "#{Path.basename(href)}" + "#{Path.basename(href)}" _ -> "" end) Enum.join([text | attachment_text], "
\n") -- cgit v1.2.3