-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Deduplicate and extract user/password extraction from alternative HTTP headers logic. #9735
Conversation
💣 Test Failed. 💣 |
@owncloud-bot Retest this please. |
The inspection completed: 6 new issues, 2 updated code elements |
🚀 Test Passed. 🚀 |
👍 - Great. We can drop the |
This `strip_tags` seems to be completely unneeded and will cause problems with passwords containing stripped characters. (e.g. `<` or `>`) Needs #9735 to be merged first.
@PVince81 @DeepDiver1975 @icewind1991 @nickvergessen Please review |
I suggest to close this in favor of #9738 where it's used ? |
yes |
This `strip_tags` seems to be completely unneeded and will cause problems with passwords containing stripped characters. (e.g. `<` or `>`) Needs #9735 to be merged first.
This `strip_tags` seems to be completely unneeded and will cause problems with passwords containing stripped characters. (e.g. `<` or `>`) Needs #9735 to be merged first.
The previous solution was not good because it is hard to see that there is no difference between the two blocks. This is now clear because we are iterating over a list of variable names. The variable name for the list can be kept short because the logic was also extracted into its own function.
Refs #9310