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

feat: make auth salt static in test environments #2273

Merged
merged 2 commits into from Mar 26, 2018
Merged

Conversation

micgro42
Copy link
Collaborator

@micgro42 micgro42 commented Mar 7, 2018

There are circumstances where we may want to test generated content that
uses the auth salt, for example when one tests the rendering of external
images where the URL contains a token from media_get_token

There are circumstances where we may want to test generated content that
uses the auth salt, for example when one tests the rendering of external
images where the url contains a token from media_get_token
@Klap-in
Copy link
Collaborator

Klap-in commented Mar 7, 2018

No idea if it applies here, but an empty string could be evaluated as false if it is compared loosely.
I guess a string like 'test' is probably more robust than ''?

As pointed out by @Klap-in, an empty string may evaluate to false in
some circumstances. This is something we may not want. Using a string
like 'test' should therefore be more robust.
@splitbrain splitbrain merged commit b4384f3 into master Mar 26, 2018
@splitbrain splitbrain deleted the staticSaltInTests branch March 26, 2018 09:34
micgro42 added a commit to cosmocode/dokuwiki-plugin-prosemirror that referenced this pull request May 29, 2018
This was made possible by the inclusion of dokuwiki/dokuwiki#2273 into the Greebo release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants