From 2353e6d23f54902d3b2b9e3fd46f1baa6e803450 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 30 Sep 2013 19:28:59 -0700 Subject: small fixes --- mod/sources.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/sources.php') diff --git a/mod/sources.php b/mod/sources.php index 200a0cddf..125184d47 100644 --- a/mod/sources.php +++ b/mod/sources.php @@ -60,7 +60,7 @@ function sources_content(&$a) { ); if($r) { for($x = 0; $x < count($r); $x ++) { - $r[$x]['src_patt'] = htmlspecialchars($r[$x]['src_patt']); + $r[$x]['src_patt'] = htmlspecialchars($r[$x]['src_patt'], ENT_COMPAT,'UTF-8'); } } $o = replace_macros(get_markup_template('sources_list.tpl'), array( @@ -97,7 +97,7 @@ function sources_content(&$a) { return ''; } - $r[0]['src_patt'] = htmlspecialchars($r[0]['src_patt']); + $r[0]['src_patt'] = htmlspecialchars($r[0]['src_patt'], ENT_QUOTES,'UTF-8'); $o = replace_macros(get_markup_template('sources_edit.tpl'), array( '$title' => t('Edit Source'), -- cgit v1.2.3