diff --git a/functions.php b/functions.php index 0dae38842..9d32e98f3 100644 --- a/functions.php +++ b/functions.php @@ -23,6 +23,7 @@ function get_translations() { $tr = array( "auto" => "Detect automatically", + "ca_CA" => "Català", "en_US" => "English", "es_ES" => "Español", "de_DE" => "Deutsch", @@ -3528,7 +3529,7 @@ print ""; } - print sanitize_rss($link, $line["content_preview"]); + print sanitize_rss($link, $line["content_preview"], false, $owner_uid); print "]]>"; print ""; @@ -3590,10 +3591,12 @@ } */ - function sanitize_rss($link, $str, $force_strip_tags = false) { + function sanitize_rss($link, $str, $force_strip_tags = false, $owner = false) { $res = $str; - if (get_pref($link, "STRIP_UNSAFE_TAGS") || $force_strip_tags) { + if (!$owner) $owner = $_SESSION["uid"]; + + if (get_pref($link, "STRIP_UNSAFE_TAGS", $owner) || $force_strip_tags) { // $res = strip_tags_long($res, // "