aboutsummaryrefslogtreecommitdiff
path: root/test/web/common_api/common_api_test.exs
diff options
context:
space:
mode:
authorkaniini <ariadne@dereferenced.org>2019-11-03 16:18:19 +0000
committerkaniini <ariadne@dereferenced.org>2019-11-03 16:18:19 +0000
commit61bcd4595fa61bd79a7bcb553968df9fc8306499 (patch)
treec1ac1eba2dc4a942e1d4a0e43aaf69e9db33a28c /test/web/common_api/common_api_test.exs
parent9d8da9ea1501203662e08b6814ac324415653f3e (diff)
parent55ef88ef95ecda94ea416bd3a8492f992488ea83 (diff)
downloadpleroma-61bcd4595fa61bd79a7bcb553968df9fc8306499.tar.gz
Merge branch 'feature/fast_sanitize' into 'develop'
Switching to FastSanitize See merge request pleroma/pleroma!1916
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