summaryrefslogtreecommitdiff
path: root/test/web/common_api/common_api_test.exs
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-10-29 01:18:08 +0300
committerrinpatch <rinpatch@sdf.org>2019-10-29 01:18:08 +0300
commit08f68370659597d6bc428e425925bcb9516d5706 (patch)
treee363ecbc622ad2c24b53f5688271f457ca6830ab /test/web/common_api/common_api_test.exs
parent2453928b57d3dbe60a5f6a4a85f2f03d3192108e (diff)
downloadpleroma-08f68370659597d6bc428e425925bcb9516d5706.tar.gz
pleroma-08f68370659597d6bc428e425925bcb9516d5706.zip
Switch from HtmlSanitizeEx to FastSanitize
Diffstat (limited to 'test/web/common_api/common_api_test.exs')
-rw-r--r--test/web/common_api/common_api_test.exs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/common_api/common_api_test.exs b/test/web/common_api/common_api_test.exs
index 1d2f20617..212b00cbb 100644
--- a/test/web/common_api/common_api_test.exs
+++ b/test/web/common_api/common_api_test.exs
@@ -140,7 +140,7 @@ defmodule Pleroma.Web.CommonAPITest do
object = Object.normalize(activity)
- assert object.data["content"] == "<p><b>2hu</b></p>alert('xss')"
+ assert object.data["content"] == "<p><b>2hu</b></p>alert(&#39;xss&#39;)"
end
test "it filters out obviously bad tags when accepting a post as Markdown" do
@@ -156,7 +156,7 @@ defmodule Pleroma.Web.CommonAPITest do
object = Object.normalize(activity)
- assert object.data["content"] == "<p><b>2hu</b></p>alert('xss')"
+ assert object.data["content"] == "<p><b>2hu</b></p>alert(&#39;xss&#39;)"
end
test "it does not allow replies to direct messages that are not direct messages themselves" do