We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 467024a commit 6f81758Copy full SHA for 6f81758
server/plugins-available/mail_plugin.inc.php
@@ -118,8 +118,8 @@ function user_update($event_name,$data) {
118
// Move mailbox, if domain has changed and delete old mailbox
119
if($data['new']['maildir'] != $data['old']['maildir'] && is_dir($data['old']['maildir'])) {
120
if(is_dir($data['new']['maildir'])) {
121
- exec("rm -f ".escapeshellcmd($data['new']['maildir']).'/*');
122
- rmdir($data['new']['maildir']);
+ exec("rm -fr ".escapeshellcmd($data['new']['maildir']));
+ //rmdir($data['new']['maildir']);
123
}
124
exec('mv -f '.escapeshellcmd($data['old']['maildir']).' '.escapeshellcmd($data['new']['maildir']));
125
// exec('mv -f '.escapeshellcmd($data['old']['maildir']).'/* '.escapeshellcmd($data['new']['maildir']));
0 commit comments