[TYPO3-core] Gremlin #76: t3lib_div::writeFile() changes permissions without need

Michael Stucki michael at typo3.org
Thu Nov 24 00:51:17 CET 2005

Fixed in CVS.

Michael Stucki wrote:

> Author reports:
> Playing around with the filelist module, I discovered the following bug:
> If a file has been edited via filelist, the permissions are changed to 775
> after saving (or whatever given in ['TYPO3_CONF_VARS']['BE'
> ['fileCreateMask']).
> The editor uses t3lib_div::writeFile(), but this function does not check
> if a file did exist before writing and so does not preserve its
> permissions.
> Solution:
> Check if the file exists, set a flag, and only change the permissions if
> this flag was set.
> - michael

Use a newsreader! Check out

More information about the TYPO3-team-core mailing list