aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-12 02:15:02 -0800
committerfriendica <info@friendica.com>2013-12-12 02:15:02 -0800
commit303324cdff3f7c8bc83fae89256a2133939944b2 (patch)
treef6065af47bd6eaf35a8c220f5c082fec0fd49517 /include/network.php
parent941f81eb300074b203dd480924f9cf8b9d41a08d (diff)
downloadvolse-hubzilla-303324cdff3f7c8bc83fae89256a2133939944b2.tar.gz
volse-hubzilla-303324cdff3f7c8bc83fae89256a2133939944b2.tar.bz2
volse-hubzilla-303324cdff3f7c8bc83fae89256a2133939944b2.zip
more htmlspecialchars sanitisation
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/network.php b/include/network.php
index 50f853ca0..225b215fe 100644
--- a/include/network.php
+++ b/include/network.php
@@ -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);