Przeglądaj źródła

Fix incorrect stristr() parameter order

pdontthink 16 lat temu
rodzic
commit
08fc33cf6c
1 zmienionych plików z 1 dodań i 1 usunięć
  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) {
     function quotevalue($value) {
         /* Quote the field if it contains | or ". Double quotes need to
         /* Quote the field if it contains | or ". Double quotes need to
          * be replaced with "" */
          * be replaced with "" */
-        if(stristr('"', $value) || stristr('|', $value)) {
+        if(stristr($value, '"') || stristr($value, '|')) {
             $value = '"' . str_replace('"', '""', $value) . '"';
             $value = '"' . str_replace('"', '""', $value) . '"';
         }
         }
         return $value;
         return $value;