Closed freescout-helpdesk closed 1 year ago
doValidate()
in https://github.com/ezyang/htmlpurifier/blob/master/library/HTMLPurifier/URIScheme/data.php#L36 is even never executed.
Solved:
'URI.AllowedSchemes' => [
'http' => true,
'https' => true,
'mailto' => true,
'ftp' => true,
'nntp' => true,
'news' => true,
'tel' => true,
'data' => true, // Add this!
],
By some reason all
<img src="data:image/png;base64,iVBORw0KGgoAA..." />
are being removed. Maybe someone can point out the direction where to dig.Here is the config: https://github.com/freescout-helpdesk/freescout/blob/dist/config/purifier.php
ezyang/htmlpurifier v4.12.0 and v4.16.0
Original issue: https://github.com/freescout-helpdesk/freescout/issues/2355