@@ -207,7 +207,23 @@ protected function _getFilters()
207207 }
208208
209209 if ($ f_list = $ GLOBALS ['prefs ' ]->getValue ('filter ' )) {
210- $ f_list = @unserialize ($ f_list );
210+ $ f_list = @unserialize ($ f_list , ['allowed_classes ' => [
211+ 'IMP_Search_Filter ' ,
212+ 'IMP_Search_Element_Attachment ' ,
213+ 'IMP_Search_Element_Autogenerated ' ,
214+ 'IMP_Search_Element_Bulk ' ,
215+ 'IMP_Search_Element_Contacts ' ,
216+ 'IMP_Search_Element_Daterange ' ,
217+ 'IMP_Search_Element_Flag ' ,
218+ 'IMP_Search_Element_Header ' ,
219+ 'IMP_Search_Element_Mailinglist ' ,
220+ 'IMP_Search_Element_Or ' ,
221+ 'IMP_Search_Element_Personal ' ,
222+ 'IMP_Search_Element_Recipient ' ,
223+ 'IMP_Search_Element_Size ' ,
224+ 'IMP_Search_Element_Text ' ,
225+ 'IMP_Search_Element_Within ' ,
226+ ]]);
211227 if (is_array ($ f_list )) {
212228 foreach ($ f_list as $ val ) {
213229 if ($ val instanceof IMP_Search_Filter) {
@@ -297,7 +313,25 @@ protected function _getVFolders()
297313 }
298314
299315 if ($ pref_vf = $ GLOBALS ['prefs ' ]->getValue ('vfolder ' )) {
300- $ pref_vf = @unserialize ($ pref_vf );
316+ $ pref_vf = @unserialize ($ pref_vf , ['allowed_classes ' => [
317+ 'IMP_Search_Vfolder ' ,
318+ 'IMP_Search_Vfolder_Vinbox ' ,
319+ 'IMP_Search_Vfolder_Vtrash ' ,
320+ 'IMP_Search_Element_Attachment ' ,
321+ 'IMP_Search_Element_Autogenerated ' ,
322+ 'IMP_Search_Element_Bulk ' ,
323+ 'IMP_Search_Element_Contacts ' ,
324+ 'IMP_Search_Element_Daterange ' ,
325+ 'IMP_Search_Element_Flag ' ,
326+ 'IMP_Search_Element_Header ' ,
327+ 'IMP_Search_Element_Mailinglist ' ,
328+ 'IMP_Search_Element_Or ' ,
329+ 'IMP_Search_Element_Personal ' ,
330+ 'IMP_Search_Element_Recipient ' ,
331+ 'IMP_Search_Element_Size ' ,
332+ 'IMP_Search_Element_Text ' ,
333+ 'IMP_Search_Element_Within ' ,
334+ ]]);
301335 if (is_array ($ pref_vf )) {
302336 foreach ($ pref_vf as $ val ) {
303337 if ($ val instanceof IMP_Search_Vfolder) {
0 commit comments