From: pdontthink Date: Mon, 10 Aug 2009 23:18:20 +0000 (+0000) Subject: Fix incorrect stristr() parameter order X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=bbb2bab55dbfb58735b8aa3eab53c052410753fa Fix incorrect stristr() parameter order git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13813 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- 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;