mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
whitelist changes:
* add gif and jpg as allowed data images * ensure that user controlled content fall only in the "data section" of the data URI (and does not intersect content-type definition in any way (best to be safe than sorry ;-))) "data section" as defined in: https://tools.ietf.org/html/rfc2397#section-3
This commit is contained in:
parent
e4bb12329e
commit
4dc98b635d
@ -91,7 +91,9 @@ class Parsedown
|
||||
'ftp://',
|
||||
'ftps://',
|
||||
'mailto:',
|
||||
'data:image/png;',
|
||||
'data:image/png;base64,',
|
||||
'data:image/gif;base64,',
|
||||
'data:image/jpg;base64,',
|
||||
);
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user