]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Improve URL cleaning: 141/head
authornodiscc <nodiscc@gmail.com>
Thu, 5 Mar 2015 12:40:43 +0000 (13:40 +0100)
committernodiscc <nodiscc@gmail.com>
Thu, 5 Mar 2015 12:40:43 +0000 (13:40 +0100)
 * also remove action_type_map, action_ref_map and action_object maps params used by facebook

index.php

index 0b507b455ca2503d3456366fe449d4a7c2f4af89..bc4fa1e4c601b465be7e62d6197036a669012997 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1644,7 +1644,7 @@ function renderPage()
 
 
         // We remove the annoying parameters added by FeedBurner, GoogleFeedProxy, Facebook...
-        $annoyingpatterns = array('/[\?&]utm_source=[^&]*/', '/[\?&]utm_campaign=[^&]*/', '/[\?&]utm_medium=[^&]*/', '/#xtor=RSS-[^&]*/', '/[\?&]fb_[^&]*/', '/[\?&]__scoop[^&]*/', '/#tk\.rss_all\?/');
+        $annoyingpatterns = array('/[\?&]utm_source=[^&]*/', '/[\?&]utm_campaign=[^&]*/', '/[\?&]utm_medium=[^&]*/', '/#xtor=RSS-[^&]*/', '/[\?&]fb_[^&]*/', '/[\?&]__scoop[^&]*/', '/#tk\.rss_all\?/', '/[\?&]action_ref_map=[^&]*/', '/[\?&]action_type_map=[^&]*/', '/[\?&]action_object_map=[^&]*/');
         foreach($annoyingpatterns as $pattern)
         {
             $url = preg_replace($pattern, "", $url);