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 Issue https://github.com/piwik/piwik/issues/11410 #11784
Conversation
… indicates if the cookie is secure or not. Issue #11410
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides the small change required to pass JSLint, the minified piwik.js needs to be built. But if you can't to that, we can do it before/after merging.
js/piwik.js
Outdated
* Set cookie secure flag | ||
*/ | ||
function setSecureCookie(value) { | ||
isSecureCookie = value == 1 ? true : false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JSLint test fails here. Is there any reason for comparing value
with 1
? If you want to ensure isSecureCookie
contains a Boolean afterwards, you could also cast value
to Boolean or simply use isSecureCookie = !!value
, which should pass JSLint.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sgiehl Hi there! I did the changes you requested, including the minifying. I can see there on my piwik branch but they are not being reflected in the PR. Could you tell me why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can see them on the PR as well, but could you try to rebase your branch and rebuilt the minified file? It's currently conflicting with 3.x-dev branch.
@dudu84 do you have time to make the mentioned changes? |
@sgiehl Yes, will to until tomorrow. Sorry for the delay. |
@sgiehl Hi Stefan, I did the rebase. But it is conflicting now. Could you shed a light, please? |
@dudu84 seems your fork is not even with piwik repo. So you need to update your fork before doing the rebase. |
Ok. Thanks. I'll close this one. |
fixes #11410