X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fsignout.php;h=8e15b7c83d7ad3b060241d11f16fd4e59f85d85c;hp=ed82aeb2e5223fa8bce9e941919d3d3b06befcab;hb=3392dc867232037b2c6e2089ebcab9d64e154db7;hpb=36baad6370f19264379d7b040a8f7b13a6d03d4c diff --git a/src/signout.php b/src/signout.php index ed82aeb2..8e15b7c8 100644 --- a/src/signout.php +++ b/src/signout.php @@ -35,9 +35,11 @@ require_once('../functions/plugin.php'); if (! isset($attachments)) { $attachments = array(); } + $hashed_attachment_dir = getHashedDir($username, $attachment_dir); foreach ($attachments as $info) { - if (file_exists($attachment_dir . $info['localfilename'])) { - unlink($attachment_dir . $info['localfilename']); + $attached_file = "$hashed_attachment_dir/$info[localfilename]"; + if (file_exists($attached_file)) { + unlink($attached_file); } }