Fix basic search in DIMP
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 7 Sep 2009 11:58:06 +0000 (05:58 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 7 Sep 2009 11:58:18 +0000 (05:58 -0600)
imp/ajax.php

index 11aa25f..cb90c8c 100644 (file)
@@ -774,6 +774,8 @@ case 'BasicSearch':
     $result = new stdClass;
     $imp_ui_search = new IMP_UI_Search();
     parse_str(Horde_Util::getPost('query'), $query);
+    /* parse_str() silently adds slashe escaping to variables in $query. */
+    $query = array_map('stripslashes', $query);
     $result->view = $imp_search->createSearchID($imp_ui_search->processBasicSearch($query['search_basic_mbox'], $query['search_criteria'], $query['search_criteria_text'], !empty($query['search_criteria_not']), $query['search_flags']));
     break;
 }