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 out-of-bound array access (IMAP) #229

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

BjoKaSH
Copy link
Contributor

@BjoKaSH BjoKaSH commented May 18, 2023

Fixes #169

The IMAP method allows user names with or without a domain part. For user names without a domain part, it still tries to access the (then non-existing) domain, resulting in "Error: Undefined array key 1 at .../nextcloud/apps/user_external/lib/IMAP.php#85" log messages.

@BjoKaSH BjoKaSH force-pushed the fix_imap_out_of_bound branch from 41d2e48 to 1e4d5ce Compare May 18, 2023 17:00
The IMAP method allows user names with or without a domain part.  For
user names without a domain part, it still tries to access the (then
non-existing) domain, resulting in "Error: Undefined array key 1 at
.../nextcloud/apps/user_external/lib/IMAP.php#85" log messages.

Signed-off-by: Bjoern Kahl <[email protected]>
@BjoKaSH BjoKaSH force-pushed the fix_imap_out_of_bound branch from 1e4d5ce to 8fd2a5d Compare November 25, 2023 21:03
@violoncelloCH violoncelloCH self-requested a review March 29, 2024 23:47
@violoncelloCH violoncelloCH added this to the v4.0.0 milestone Mar 29, 2024
@violoncelloCH violoncelloCH merged commit f143056 into nextcloud:master Apr 2, 2024
2 checks passed
@violoncelloCH
Copy link
Member

Thanks for the fix @BjoKaSH !

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.

Undefined offset: 1 at /var/www/html/custom_apps/user_external/lib/imap.php#84
2 participants