소스 검색

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;