Skip to content

Conversation

@jefft
Copy link
Contributor

@jefft jefft commented Oct 28, 2025

Fixes #1224. Successor to #1329

jefft added 2 commits October 17, 2025 14:09
…H-relative replacement for MEMBER_FILES_DIRS. Fixes tbar0970#1224
… new MEMBER_VISIBLE_FOLDERS are set, and point to the same relative directory. tbar0970#1224

/** Return $path if it is an existing subdirectory of $base, or false otherwise.
* @param $base Directory we want to be relative to. May not contain '..'.
* @param $path Path to check. E.g. 'foo' returns 'foo', '/foo' returns 'foo'. '' return false. '../' returns false.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* @param $path Path to check. E.g. 'foo' returns 'foo', '/foo' returns 'foo'. '' return false. '../' returns false.
* @param $path Path to check. E.g. 'foo' returns 'foo', '/foo' returns 'foo'. '' returns false. '../' returns false.

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.

Make member file sharing more discoverable, and MEMBER_FILES_DIRS user-configurable

2 participants