From: pdontthink Date: Wed, 29 Aug 2012 17:03:09 +0000 (+0000) Subject: Prevent endless recursive sent subfolder names - see: http://thread.gmane.org/gmane... X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=16dd8736f68b753f06df30ff39892ef18579e2ce;hp=ab0c4c3a6d9ae04b2d9735a8b7a040d49a14eec9 Prevent endless recursive sent subfolder names - see: thread.gmane.org/gmane.mail.squirrelmail.user/39178 git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14340 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/plugins/sent_subfolders/functions.php b/plugins/sent_subfolders/functions.php index 783d263d..4cf6e560 100644 --- a/plugins/sent_subfolders/functions.php +++ b/plugins/sent_subfolders/functions.php @@ -131,6 +131,10 @@ function save_option_sent_subfolders_setting($option) { } else { setPref($data_dir, $username, 'use_sent_subfolders', SMPREF_ON); setPref($data_dir, $username, 'move_to_sent', SMPREF_ON); + $check_sent_subfolders_base = getPref($data_dir, $username, 'sent_subfolders_base', ''); + if ($check_sent_subfolders_base === '') { + setPref($data_dir, $username, 'sent_subfolders_base', $sent_subfolders_base); + } } /* Now just save the option as normal. */