From 725ca094f8e4b7460869097b6a2a2bd6a4a420f4 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Fri, 20 May 2016 02:06:43 +0200 Subject: [PATCH] Url.php: remove unwanted ?PHPSESSID= URL parameters, update test case --- application/Url.php | 1 + tests/Url/UrlTest.php | 1 + 2 files changed, 2 insertions(+) diff --git a/application/Url.php b/application/Url.php index 77447c8d..c166ff6e 100644 --- a/application/Url.php +++ b/application/Url.php @@ -99,6 +99,7 @@ class Url 'action_type_map=', 'fb_', 'fb=', + 'PHPSESSID=', // Scoop.it '__scoop', diff --git a/tests/Url/UrlTest.php b/tests/Url/UrlTest.php index ce82265e..4bf53b2d 100644 --- a/tests/Url/UrlTest.php +++ b/tests/Url/UrlTest.php @@ -85,6 +85,7 @@ class UrlTest extends PHPUnit_Framework_TestCase $this->assertUrlIsCleaned('?utm_term=1n4l'); $this->assertUrlIsCleaned('?xtor=some-url'); + $this->assertUrlIsCleaned('?PHPSESSID=012345678910111213'); } /** -- 2.41.0