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

Tweak to XenForo ruleset #507

Open
Telesphoreo opened this issue Jan 2, 2025 · 0 comments
Open

Tweak to XenForo ruleset #507

Telesphoreo opened this issue Jan 2, 2025 · 0 comments

Comments

@Telesphoreo
Copy link

Hi,

I am using the default ruleset in the repo for XenForo. This line:

sp.wrappers_whitelist.list("file,php,phar");

actually breaks things when you try and use this guide (https://xenforo.com/community/resources/using-digitalocean-spaces-or-amazon-s3-for-file-storage-in-xf-2-1-xf-2-2.6805/) to host your content on S3.

Adding "http,https" to the line giving

sp.wrappers_whitelist.list("file,php,phar,http,https");

seems to have fixed things and attachments now upload and are correctly viewable.

Just throwing this out there for anyone having this issue, but maybe it could be merged into the ruleset

Error for reference:

An exception occurred: [InvalidArgumentException] Must pass valid resource in in src/XF/Http/ResponseStream.php on line 18

XF\Http\ResponseStream->__construct() in src/XF/Http/Response.php at line 262
XF\Http\Response->responseStream() in src/XF/Pub/View/Attachment/View.php at line 28
XF\Pub\View\Attachment\View->renderRaw() in src/XF/Mvc/Renderer/AbstractRenderer.php at line 92
XF\Mvc\Renderer\AbstractRenderer->renderViewObject() in src/XF/Mvc/Renderer/Raw.php at line 39
XF\Mvc\Renderer\Raw->renderView() in src/XF/Mvc/Dispatcher.php at line 471
XF\Mvc\Dispatcher->renderView() in src/XF/Mvc/Dispatcher.php at line 453
XF\Mvc\Dispatcher->renderReply() in src/XF/Mvc/Dispatcher.php at line 412
XF\Mvc\Dispatcher->render() in src/XF/Mvc/Dispatcher.php at line 66
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2826
XF\App->run() in src/XF.php at line 806
XF::runApp() in index.php at line 23
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

No branches or pull requests

1 participant