diff options
author | rinpatch <rinpatch@sdf.org> | 2019-10-29 20:49:32 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-10-29 20:49:32 +0300 |
commit | 61400d7eb785f41ab853f42d0a221357253c39eb (patch) | |
tree | b60ecf033d8f021c9d5d34be5c341cc97222e25d /test | |
parent | 7358cf1f2041329f0924fc60106dfb5ec0288feb (diff) | |
download | pleroma-61400d7eb785f41ab853f42d0a221357253c39eb.tar.gz |
Fix XSS emoji test
Diffstat (limited to 'test')
-rw-r--r-- | test/emoji/formatter_test.exs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/emoji/formatter_test.exs b/test/emoji/formatter_test.exs index 3e37ae3f0..fda80d470 100644 --- a/test/emoji/formatter_test.exs +++ b/test/emoji/formatter_test.exs @@ -28,10 +28,7 @@ defmodule Pleroma.Emoji.FormatterTest do } |> Pleroma.Emoji.build() - expected_result = - "I love <img class=\"emoji\" alt=\"\" title=\"\" src=\"https://placehold.it/1x1\" />" - - assert Formatter.emojify(text, [{custom_emoji.code, custom_emoji}]) == expected_result + refute Formatter.emojify(text, [{custom_emoji.code, custom_emoji}]) =~ text end end |