Handle matrix URI parameters to ignore parameters like ";jsessionid=..."
|Reported by:||catchin||Owned by:|
|Priority:||normal||Milestone:||1.8.3 - Piwik 1.8.3|
How to reproduce:
Log visits from a Java EE webserver which handles the session parameter through matrix parameters, i.e. a url like http://piwik.org;jsessionid=A3294FBE42?foo=bar.
Then piwik logs the url including the ;jsessionid=A3294FBE42 part although "jsessionid" is a parameter excluded from the query parameters.
Suggestion how to fix it:
PHP's parse_url function is apparently not handling matrix parameters yet, so we have to do it on our own. I don't know where the best position in the code is and where the function would be used elsewhere. For now, I modified core/Tracker/Action.php's excludeQueryParametersFromUrl as in the attached patch.
Probably there are better ways to fix it. If you suggest one to me, I can work out and test other patches.
Change History (8)
Changed 19 months ago by catchin
comment:3 Changed 17 months ago by matt (mattab)
- Milestone changed from 1.8.x - Piwik 1.8.x to 1.8.3 - Piwik 1.8.3