Skip to content

feat: Support Roundcube 1.7 static files handling#34

Open
GermanCoding wants to merge 2 commits intomasterfrom
roundcube-1.7
Open

feat: Support Roundcube 1.7 static files handling#34
GermanCoding wants to merge 2 commits intomasterfrom
roundcube-1.7

Conversation

@GermanCoding
Copy link
Copy Markdown
Owner

@GermanCoding GermanCoding commented May 2, 2026

Roundcube 1.7 forces us to go through static.php for security. However, this script does not exist in older Roundcube releases. To maintain backwards compatibility, figure out the correct path at runtime depending on the version.

Fixes #33

Roundcube 1.7 forces us to go trough static.php for security. However,
this script does not exist in older Roundcube releases. To maintain
backwards compatibility, figure out the correct path at runtime
depending on the version.
@GermanCoding
Copy link
Copy Markdown
Owner Author

As we do not have full E2E testing, I manually gave this a spin with 1.7-RC6 (in docker), and confirmed that this works as intended.

@GermanCoding GermanCoding mentioned this pull request May 2, 2026
@GermanCoding
Copy link
Copy Markdown
Owner Author

Note: Reading the current Roundcube code, there may be a simpler alternative: Instead of parsing the Roundcube version ourselves, we could call asset_url which handles the static.php redirection automatically on RC1.7 (and this function also exists on older versions)

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.

RC1.7 "public_html" folder requirements

1 participant