aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-07-09 15:06:53 -0700
committerFriendika <info@friendika.com>2011-07-09 15:06:53 -0700
commit35edf79abe08bcc1833dc695cb9aebfa5d4a78c0 (patch)
treeedf67a70b1b498000478c685c152101425f851e5 /mod
parent2d2b5006397bb6ac90f7e33e6022000ec836e86e (diff)
downloadvolse-hubzilla-35edf79abe08bcc1833dc695cb9aebfa5d4a78c0.tar.gz
volse-hubzilla-35edf79abe08bcc1833dc695cb9aebfa5d4a78c0.tar.bz2
volse-hubzilla-35edf79abe08bcc1833dc695cb9aebfa5d4a78c0.zip
bug #102
Diffstat (limited to 'mod')
-rw-r--r--mod/parse_url.php6
1 files changed, 6 insertions, 0 deletions
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>')) {
+ $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);