aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2016-05-20 13:06:45 +0200
committerVirtualTam <virtualtam@flibidi.net>2016-05-20 13:06:45 +0200
commit521f0e65cf055846067688a685c5890d3d55185f (patch)
tree35f1917bc95ce02158db0bdf394852c9a9ea719b
parentd92169c863cd32debf4d13bc217d42abd9c4db19 (diff)
parent725ca094f8e4b7460869097b6a2a2bd6a4a420f4 (diff)
downloadShaarli-521f0e65cf055846067688a685c5890d3d55185f.tar.gz
Shaarli-521f0e65cf055846067688a685c5890d3d55185f.tar.zst
Shaarli-521f0e65cf055846067688a685c5890d3d55185f.zip
Merge pull request #574 from shaarli/urlparams-phpsessid
Url.php: remove unwanted ?PHPSESSID= URL parameters
-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 /**