From 16dd8736f68b753f06df30ff39892ef18579e2ce Mon Sep 17 00:00:00 2001 From: pdontthink Date: Wed, 29 Aug 2012 17:03:09 +0000 Subject: [PATCH] Prevent endless recursive sent subfolder names - see: http://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 --- plugins/sent_subfolders/functions.php | 4 ++++ 1 file changed, 4 insertions(+) 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. */ -- 2.25.1