From fc816feb6d1b04e19dbcbab14c6bc590871f2b64 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 17 Dec 2012 21:39:52 +0100 Subject: [PATCH] mailimport: Bug that prevented mails to be imported --- include/onepoll.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/onepoll.php b/include/onepoll.php index 10707ea960..1e11f2ca1e 100644 --- a/include/onepoll.php +++ b/include/onepoll.php @@ -406,7 +406,7 @@ function onepoll_run(&$argv, &$argc){ // If it seems to be a reply but a header couldn't be found take the last message with matching subject if(!x($datarray,'parent-uri') and $reply) { $r = q("SELECT `uri` , `parent-uri` FROM `item` WHERE MATCH (`title`) AGAINST ('".'"%s"'."' IN BOOLEAN MODE) ORDER BY `created` DESC LIMIT 1", - besc(protect_sprintf($datarray['title']))); + dbesc(protect_sprintf($datarray['title']))); if(count($r)) $datarray['parent-uri'] = $r[0]['parent-uri']; }