diff options
-rwxr-xr-x | index.php | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; |