Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix detection of Piwik URL for overlay when using a custom piwik.php path for tracking #9775

Merged
merged 1 commit into from Mar 7, 2016

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Feb 13, 2016

fixes #9467

@tsteur tsteur added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Feb 13, 2016
@tsteur tsteur added this to the 2.16.1 milestone Feb 13, 2016

if (stringEndsWith(trackerUrl, 'piwik.php')) {
// if eg without domain or path "piwik.php" => ''
trackerUrl = removeCharactersFromEndOfString(trackerUrl, 'piwik.php'.length);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the same case like below (see else if section), so looks like it's unnecessary.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to have this case there explicitly for a bit better readability and to make sure not to break anything compared to before as piwik.php is removed slightly differently below which should end in the same result but wasn't sure re side effects. I will remove it.

@sgiehl
Copy link
Member

sgiehl commented Mar 2, 2016

Besides the note from @kaz231 LGTM

@tsteur
Copy link
Member Author

tsteur commented Mar 6, 2016

@sgiehl I removed it

@sgiehl
Copy link
Member

sgiehl commented Mar 7, 2016

@tsteur Looks good to merge. would you resolve the conflicts and merge afterwards?

@tsteur
Copy link
Member Author

tsteur commented Mar 7, 2016

I'll fix merge conflict and will merge afterwards

tsteur added a commit that referenced this pull request Mar 7, 2016
Fix detection of Piwik URL for overlay when using a custom piwik.php path for tracking
@tsteur tsteur merged commit 1cf04af into master Mar 7, 2016
@tsteur tsteur deleted the 9467 branch March 7, 2016 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants