forked from AkkomaGang/akkoma
Merge branch 'normalise-markup-by-default' into develop
This commit is contained in:
commit
a8f3cf6563
2 changed files with 2 additions and 1 deletions
|
@ -98,7 +98,6 @@ defmodule Pleroma.HTML.Scrubber.Default do
|
|||
Meta.allow_tag_with_these_attributes(:img, [
|
||||
"width",
|
||||
"height",
|
||||
"class",
|
||||
"title",
|
||||
"alt"
|
||||
])
|
||||
|
|
|
@ -16,6 +16,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.NormalizeMarkupTest do
|
|||
this is an image: <img src="http://example.com/image.jpg"><br />
|
||||
<script>alert('hacked')</script>
|
||||
<div class="wow no classes here">mean</div>
|
||||
<img class="hehe" src="somewhere" />
|
||||
"""
|
||||
|
||||
@expected """
|
||||
|
@ -27,6 +28,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.NormalizeMarkupTest do
|
|||
this is an image: <img src="http://example.com/image.jpg"/><br/>
|
||||
alert('hacked')
|
||||
mean
|
||||
<img src="somewhere"/>
|
||||
"""
|
||||
|
||||
test "it filter html tags" do
|
||||
|
|
Loading…
Reference in a new issue