mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-27 11:22:17 -05:00
suppression de utm_source dans l'url #6
This commit is contained in:
parent
5a862b0827
commit
6c732e1cc6
@ -34,6 +34,13 @@ switch ($action)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
$url = html_entity_decode(trim($url));
|
$url = html_entity_decode(trim($url));
|
||||||
|
|
||||||
|
// We remove the annoying parameters added by FeedBurner and GoogleFeedProxy (?utm_source=...)
|
||||||
|
// from shaarli, by sebsauvage
|
||||||
|
$i=strpos($url,'&utm_source='); if ($i!==false) $url=substr($url,0,$i);
|
||||||
|
$i=strpos($url,'?utm_source='); if ($i!==false) $url=substr($url,0,$i);
|
||||||
|
$i=strpos($url,'#xtor=RSS-'); if ($i!==false) $url=substr($url,0,$i);
|
||||||
|
|
||||||
$title = $url;
|
$title = $url;
|
||||||
if (!preg_match('!^https?://!i', $url))
|
if (!preg_match('!^https?://!i', $url))
|
||||||
$url = 'http://' . $url;
|
$url = 'http://' . $url;
|
||||||
|
Loading…
Reference in New Issue
Block a user