Before adding an attachment to an email mimemail checks if the "realpath" contains the "public file system" path. If the files directory was symlinked this is not the case and the file is not attached.

Comments

nick_schuch’s picture

Status: Active » Needs review
StatusFileSize
new1.78 KB

The following patch adds a second "symlink path" to check against also.

nick_schuch’s picture

StatusFileSize
new775 bytes

Here is a new patch. Single line. No need for a form field.

Status: Needs review » Needs work

The last submitted patch, 2050907-2-symlink-path.patch, failed testing.

sgabe’s picture

Category: feature » bug
Status: Needs work » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.