- Affected version
- 2.0.7
Create a new text file, add any content and take this as a filename (which is totally valid under Windows at least):
This will result in a server error:
Reproducible here on XF.
Ağyar için ey bi-vefa (Eski yazı) - Numan Ağa # Tanburi, Musahib#i Şehryari - Muhayyer Sünbüle - v1.txt
This will result in a server error:
Code:
Oops! We ran into some problems.
InvalidArgumentException: Received invalid UTF-8 for string column [filename] in src\XF\Mvc\Entity\Entity.php at line 688
XF\Mvc\Entity\Entity->_castValueToType() in src\XF\Mvc\Entity\Entity.php at line 575
XF\Mvc\Entity\Entity->set() in src\XF\Service\Attachment\Preparer.php at line 34
XF\Service\Attachment\Preparer->insertDataFromFile() in src\XF\Service\Attachment\Preparer.php at line 16
XF\Service\Attachment\Preparer->insertAttachment() in src\XF\Attachment\Manipulator.php at line 170
XF\Attachment\Manipulator->insertAttachmentFromUpload() in src\XF\Pub\Controller\Attachment.php at line 86
XF\Pub\Controller\Attachment->actionUpload() in src\XF\Mvc\Dispatcher.php at line 249
XF\Mvc\Dispatcher->dispatchClass() in src\XF\Mvc\Dispatcher.php at line 88
XF\Mvc\Dispatcher->dispatchLoop() in src\XF\Mvc\Dispatcher.php at line 41
XF\Mvc\Dispatcher->run() in src\XF\App.php at line 1931
XF\App->run() in src\XF.php at line 328
XF::runApp() in index.php at line 13
Last edited: