[upd] improve removing feedburner.... parameter
This commit is contained in:
parent
1d1bc6ebe3
commit
01342dd5a4
1 changed files with 3 additions and 3 deletions
|
@ -1640,9 +1640,9 @@ function renderPage()
|
||||||
$url=$_GET['post'];
|
$url=$_GET['post'];
|
||||||
|
|
||||||
// We remove the annoying parameters added by FeedBurner and GoogleFeedProxy (?utm_source=...)
|
// We remove the annoying parameters added by FeedBurner and GoogleFeedProxy (?utm_source=...)
|
||||||
$i=strpos($url,'&utm_source='); if ($i!==false) $url=substr($url,0,$i);
|
$i=stripos($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=stripos($url,'?utm_source='); if ($i!==false) $url=substr($url,0,$i);
|
||||||
$i=strpos($url,'#xtor=RSS-'); if ($i!==false) $url=substr($url,0,$i);
|
$i=stripos($url,'#xtor=RSS-'); if ($i!==false) $url=substr($url,0,$i);
|
||||||
|
|
||||||
$link_is_new = false;
|
$link_is_new = false;
|
||||||
$link = $LINKSDB->getLinkFromUrl($url); // Check if URL is not already in database (in this case, we will edit the existing link)
|
$link = $LINKSDB->getLinkFromUrl($url); // Check if URL is not already in database (in this case, we will edit the existing link)
|
||||||
|
|
Loading…
Reference in a new issue