1
0
mirror of https://github.com/erusev/parsedown.git synced 2025-09-03 03:42:38 +02: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:
Aidan Woods
2017-05-02 19:48:08 +01:00
parent e4bb12329e
commit 4dc98b635d

View File

@@ -91,7 +91,9 @@ class Parsedown
'ftp://',
'ftps://',
'mailto:',
'data:image/png;',
'data:image/png;base64,',
'data:image/gif;base64,',
'data:image/jpg;base64,',
);
#