]> git.mxchange.org Git - friendica.git/commitdiff
bug #102
authorFriendika <info@friendika.com>
Sat, 9 Jul 2011 22:06:53 +0000 (15:06 -0700)
committerFriendika <info@friendika.com>
Sat, 9 Jul 2011 22:06:53 +0000 (15:06 -0700)
boot.php
mod/parse_url.php

index 8ff029a5c31d59069f0c0271470d66300b602fa8..3f64310fc491d37af2cfa08b230bb8e42ee6450b 100644 (file)
--- 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      );
 
index ec28d74111817db7fcc540afcb3a769a5c8ee729..bf6639b300a72cd6a24cd2c6a14aa186fe6a9862 100644 (file)
@@ -39,6 +39,12 @@ function parse_url_content(&$a) {
                killme();
        }
 
+       if(strpos($s,'<title>')) {
+               $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);