Open
Description
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
Metadata
Assignees
Labels
No labels