aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-01 15:43:57 -0700
committerfriendica <info@friendica.com>2012-04-01 15:43:57 -0700
commit00bbb9ad362539cc945254eb66af33e2e470440b (patch)
tree2c9d21f10924faa6b664722dea85cecfcd10cd15
parent9b4bef8ac49131f8138d360805645e2da44913ae (diff)
downloadvolse-hubzilla-00bbb9ad362539cc945254eb66af33e2e470440b.tar.gz
volse-hubzilla-00bbb9ad362539cc945254eb66af33e2e470440b.tar.bz2
volse-hubzilla-00bbb9ad362539cc945254eb66af33e2e470440b.zip
slight improvement in handling of plaintext feeds
-rwxr-xr-xboot.php2
-rwxr-xr-xinclude/items.php11
2 files changed, 10 insertions, 3 deletions
diff --git a/boot.php b/boot.php
index 683daf401..2f2e28ceb 100755
--- a/boot.php
+++ b/boot.php
@@ -9,7 +9,7 @@ require_once('include/nav.php');
require_once('include/cache.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica');
-define ( 'FRIENDICA_VERSION', '2.3.1298' );
+define ( 'FRIENDICA_VERSION', '2.3.1299' );
define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
define ( 'DB_UPDATE_VERSION', 1134 );
diff --git a/include/items.php b/include/items.php
index 8f8b3ccd0..ee6960534 100755
--- a/include/items.php
+++ b/include/items.php
@@ -435,8 +435,15 @@ function get_atom_elements($feed,$item) {
$res['body'] = @html2bbcode($res['body']);
}
-// else
-// $res['body'] = escape_tags($res['body']);
+ elseif(! $have_real_body) {
+
+ // it's not one of our messages and it has no tags
+ // so it's probably just text. We'll escape it just to be safe.
+
+ $res['body'] = escape_tags($res['body']);
+ }
+
+ // this tag is obsolete but we keep it for really old sites
$allow = $item->get_item_tags(NAMESPACE_DFRN,'comment-allow');
if($allow && $allow[0]['data'] == 1)