]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Url.php: remove unwanted ?PHPSESSID= URL parameters, 574/head
authornodiscc <nodiscc@gmail.com>
Fri, 20 May 2016 00:06:43 +0000 (02:06 +0200)
committernodiscc <nodiscc@gmail.com>
Fri, 20 May 2016 10:23:03 +0000 (12:23 +0200)
update test case

application/Url.php
tests/Url/UrlTest.php

index 77447c8df96635c17f55a90cb463a1313c35170a..c166ff6ef03f6023c2bf895279f8eb8940736ba9 100644 (file)
@@ -99,6 +99,7 @@ class Url
         'action_type_map=',
         'fb_',
         'fb=',
+        'PHPSESSID=',
 
         // Scoop.it
         '__scoop',
index ce82265e305bfceec3b69e232002a411f5ea0d67..4bf53b2dfc675da911c6e3fb3df469cfbd2cec5a 100644 (file)
@@ -85,6 +85,7 @@ class UrlTest extends PHPUnit_Framework_TestCase
         $this->assertUrlIsCleaned('?utm_term=1n4l');
 
         $this->assertUrlIsCleaned('?xtor=some-url');
+        $this->assertUrlIsCleaned('?PHPSESSID=012345678910111213');
     }
 
     /**