From: <pdo...@us...> - 2009-08-10 23:19:15
|
Revision: 13814 http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=13814&view=rev Author: pdontthink Date: 2009-08-10 23:19:04 +0000 (Mon, 10 Aug 2009) Log Message: ----------- Fix incorrect stristr() parameter order Modified Paths: -------------- branches/SM-1_4-STABLE/squirrelmail/functions/abook_local_file.php Modified: branches/SM-1_4-STABLE/squirrelmail/functions/abook_local_file.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/functions/abook_local_file.php 2009-08-10 23:18:20 UTC (rev 13813) +++ branches/SM-1_4-STABLE/squirrelmail/functions/abook_local_file.php 2009-08-10 23:19:04 UTC (rev 13814) @@ -574,7 +574,7 @@ 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; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |