From 35edf79abe08bcc1833dc695cb9aebfa5d4a78c0 Mon Sep 17 00:00:00 2001 From: Friendika Date: Sat, 9 Jul 2011 15:06:53 -0700 Subject: bug #102 --- boot.php | 2 +- mod/parse_url.php | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/boot.php b/boot.php index 8ff029a5c..3f64310fc 100644 --- a/boot.php +++ b/boot.php @@ -4,7 +4,7 @@ set_time_limit(0); ini_set('pcre.backtrack_limit', 250000); -define ( 'FRIENDIKA_VERSION', '2.2.1034' ); +define ( 'FRIENDIKA_VERSION', '2.2.1036' ); define ( 'DFRN_PROTOCOL_VERSION', '2.21' ); define ( 'DB_UPDATE_VERSION', 1075 ); diff --git a/mod/parse_url.php b/mod/parse_url.php index ec28d7411..bf6639b30 100644 --- a/mod/parse_url.php +++ b/mod/parse_url.php @@ -39,6 +39,12 @@ function parse_url_content(&$a) { killme(); } + if(strpos($s,'')) { + $title = substr($s,strpos($s,'<title>')+7,64); + if(strpos($title,'<') !== false) + $title = substr($title,0,strpos($title,'<')); + } + $config = HTMLPurifier_Config::createDefault(); $config->set('Cache.DefinitionImpl', null); -- cgit v1.2.3