瀏覽代碼

Fix incorrect stristr() parameter order

pdontthink 16 年之前
父節點
當前提交
08fc33cf6c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      functions/abook_local_file.php

+ 1 - 1
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;