From bbb2bab55dbfb58735b8aa3eab53c052410753fa Mon Sep 17 00:00:00 2001 From: pdontthink Date: Mon, 10 Aug 2009 23:18:20 +0000 Subject: [PATCH] Fix incorrect stristr() parameter order git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13813 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/abook_local_file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/abook_local_file.php b/functions/abook_local_file.php index 0c235e36..5361abc0 100644 --- a/functions/abook_local_file.php +++ b/functions/abook_local_file.php @@ -589,7 +589,7 @@ class abook_local_file extends addressbook_backend { function quotevalue($value) { /* Quote the field if it contains | or ". Double quotes need to * be replaced with "" */ - if(stristr('"', $value) || stristr('|', $value)) { + if(stristr($value, '"') || stristr($value, '|')) { $value = '"' . str_replace('"', '""', $value) . '"'; } return $value; -- 2.25.1