Skip to content

Comments

fix: remove user part only at the beginning of path#2367

Open
salmart-dev wants to merge 1 commit intomasterfrom
fix/58333/user-files-replace
Open

fix: remove user part only at the beginning of path#2367
salmart-dev wants to merge 1 commit intomasterfrom
fix/58333/user-files-replace

Conversation

@salmart-dev
Copy link
Contributor

@salmart-dev salmart-dev commented Feb 13, 2026

Summary

For server/#58333 in circles share provider

Replaces str_replace with a str_starts_with + substr for stripping the user portion off the path.

Checklist

@salmart-dev
Copy link
Contributor Author

/backport to stable33

@salmart-dev salmart-dev marked this pull request as ready for review February 16, 2026 09:27
$userId = $federatedUser->getUserId();
if (str_starts_with($path, '/' . $userId . '/files')) {
$path = substr($path, strlen('/' . $userId . '/files'));
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment on the server PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addressed 🙏

Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
@salmart-dev salmart-dev force-pushed the fix/58333/user-files-replace branch from 9f02d8c to 705d6ec Compare February 20, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants