Skip to content

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Jun 20, 2025

Backport of PR #53616

…password-from-env

Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: provokateurin <kate@provokateurin.de>
@backportbot backportbot bot added 3. to review Waiting for reviews technical debt labels Jun 20, 2025
@backportbot backportbot bot added this to the Nextcloud 30.0.13 milestone Jun 20, 2025
// Setup password.
if ($input->getOption('password-from-env')) {
$password = getenv('OC_PASS');
$password = getenv('NC_PASS') ?: getenv('OC_PASS');

Check notice

Code scanning / Psalm

RiskyTruthyFalsyComparison Note

Operand of type false|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead.

if ($input->getOption('password-from-env')) {
$password = getenv('NC_PASS') ?? getenv('OC_PASS');
$password = getenv('NC_PASS') ?: getenv('OC_PASS');

Check notice

Code scanning / Psalm

RiskyTruthyFalsyComparison Note

Operand of type false|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead.

if ($input->getOption('password-from-env')) {
$password = getenv('OC_PASS');
$password = getenv('NC_PASS') ?: getenv('OC_PASS');

Check notice

Code scanning / Psalm

RiskyTruthyFalsyComparison Note

Operand of type false|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead.
@provokateurin provokateurin enabled auto-merge June 20, 2025 10:47
@provokateurin provokateurin merged commit c5c6dcb into stable30 Jun 20, 2025
177 checks passed
@provokateurin provokateurin deleted the backport/53616/stable30 branch June 20, 2025 11:01
@nextcloud-bot nextcloud-bot mentioned this pull request Jul 3, 2025
10 tasks
@nextcloud-bot nextcloud-bot mentioned this pull request Sep 25, 2025
2 tasks
@blizzz blizzz mentioned this pull request Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants