mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Prevent path conversion of data: URL in <img> tag
This commit is contained in:
parent
de629d6d43
commit
099d8397c9
2 changed files with 6 additions and 2 deletions
|
|
@ -282,6 +282,10 @@ class TemplateHandlerTest extends \Codeception\TestCase\Test
|
|||
'<input>asdf src="../img/img.gif" asdf</input>',
|
||||
'?><input>asdf src="../img/img.gif" asdf</input>'
|
||||
),
|
||||
array(
|
||||
'<img src="data:image/png;base64,AAAAAAAAAAA=" />',
|
||||
'?><img src="data:image/png;base64,AAAAAAAAAAA=" />'
|
||||
),
|
||||
// srcset (PR #1544)
|
||||
array(
|
||||
'<img src="./img/sticker_banner_960w.png" alt="this is a test image." srcset="https://abc.com/static/img/test@2x.png 2x, http://abc.com/static/test@2.5x.png 2.5x,../img/test@3x.png 3x, ../img/test_960w.png 960w, {$mid}/image.png 480w">',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue