Bug #17953
closedPermission problem of RTE images
0%
Description
Hi,
I moved Typo3 to a new server (Apache2, suPHP) and had a small problem with adding new images into a page!
The HtmlArea creates the RTE image under uploads, but with wrong permissions (0600)!
Apache2 returns a "no permissions" site if i try to open the resized image in the browser!
After adding a chmod in the file typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_select_image.php after both copy() everything works correctly now!
The missing code is:
@chmod($destName, $TYPO3_CONF_VARS['BE']['fileCreateMask']);
Greets,
Miles
(issue imported from #M7052)
Files
Updated by Stanislas Rolland almost 17 years ago
Fixed in SVN TYPO3core trunk revision 2868.
Updated by Miles Mller almost 17 years ago
The Patch don't work, because you can't chmod before you create the file.
Updated by Miles Mller almost 17 years ago
Sorry, I found one more mistake!
The variable $TYPO3_CONF_VARS['BE']['fileCreateMask'] is saved as string, but chmod need it as a number, so you need to convert it with octdec!
rtehtmlarea_bugfix_7052_new2.patch should be correct now!
Updated by Stanislas Rolland almost 17 years ago
Thank you for your patience!
Committed to SVN branches trunk and TYPO3_4-2