aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xindex.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/index.php b/index.php
index df00a4d0..27ef5755 100755
--- a/index.php
+++ b/index.php
@@ -34,6 +34,13 @@ switch ($action)
34 continue; 34 continue;
35 35
36 $url = html_entity_decode(trim($url)); 36 $url = html_entity_decode(trim($url));
37
38 // We remove the annoying parameters added by FeedBurner and GoogleFeedProxy (?utm_source=...)
39 // from shaarli, by sebsauvage
40 $i=strpos($url,'&utm_source='); if ($i!==false) $url=substr($url,0,$i);
41 $i=strpos($url,'?utm_source='); if ($i!==false) $url=substr($url,0,$i);
42 $i=strpos($url,'#xtor=RSS-'); if ($i!==false) $url=substr($url,0,$i);
43
37 $title = $url; 44 $title = $url;
38 if (!preg_match('!^https?://!i', $url)) 45 if (!preg_match('!^https?://!i', $url))
39 $url = 'http://' . $url; 46 $url = 'http://' . $url;