aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornodiscc <nodiscc@gmail.com>2016-05-20 02:06:43 +0200
committernodiscc <nodiscc@gmail.com>2016-05-20 12:23:03 +0200
commit725ca094f8e4b7460869097b6a2a2bd6a4a420f4 (patch)
tree35f1917bc95ce02158db0bdf394852c9a9ea719b
parentd92169c863cd32debf4d13bc217d42abd9c4db19 (diff)
downloadShaarli-725ca094f8e4b7460869097b6a2a2bd6a4a420f4.tar.gz
Shaarli-725ca094f8e4b7460869097b6a2a2bd6a4a420f4.tar.zst
Shaarli-725ca094f8e4b7460869097b6a2a2bd6a4a420f4.zip
Url.php: remove unwanted ?PHPSESSID= URL parameters,
update test case
-rw-r--r--application/Url.php1
-rw-r--r--tests/Url/UrlTest.php1
2 files changed, 2 insertions, 0 deletions
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
99 'action_type_map=', 99 'action_type_map=',
100 'fb_', 100 'fb_',
101 'fb=', 101 'fb=',
102 'PHPSESSID=',
102 103
103 // Scoop.it 104 // Scoop.it
104 '__scoop', 105 '__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
85 $this->assertUrlIsCleaned('?utm_term=1n4l'); 85 $this->assertUrlIsCleaned('?utm_term=1n4l');
86 86
87 $this->assertUrlIsCleaned('?xtor=some-url'); 87 $this->assertUrlIsCleaned('?xtor=some-url');
88 $this->assertUrlIsCleaned('?PHPSESSID=012345678910111213');
88 } 89 }
89 90
90 /** 91 /**