more htmlspecialchars sanitisation

This commit is contained in:
friendica
2013-12-12 02:15:02 -08:00
parent 941f81eb30
commit 303324cdff
4 changed files with 7 additions and 7 deletions

View File

@@ -582,7 +582,7 @@ function scale_external_images($s, $include_link = true, $scale_replace = false)
$a = get_app();
// Picture addresses can contain special characters
$s = htmlspecialchars_decode($s);
$s = htmlspecialchars_decode($s, ENT_COMPAT,'UTF-8');
$matches = null;
$c = preg_match_all('/\[img(.*?)\](.*?)\[\/img\]/ism',$s,$matches,PREG_SET_ORDER);