Overview
SHA1:f1a23f0f3f77f3edc115f4968a3969ff9232ebd5
Date: 2018-08-02 03:01:28
User: bohwaz
Comment:Corrige bug échappement guillemets dans CSV, signalé par @David
Timelines: family | ancestors | descendants | both | trunk | stable
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2018-08-02
03:10
[a79684b861] Corrige problème de signature à l'export coupée par le navigateur, signalé par @David (user: bohwaz, tags: trunk, stable)
03:01
[f1a23f0f3f] Corrige bug échappement guillemets dans CSV, signalé par @David (user: bohwaz, tags: trunk, stable)
2018-08-01
00:22
[35fcafd94e] Répondre à l'auteur du message, pas à l'adresse FORCE_EMAIL_FROM (user: bohwaz, tags: trunk, stable)
Changes

Modified src/include/lib/Garradin/Utils.php from [27ce90a75e] to [4680da7c34].

733
734
735
736
737
738
739
740
741
742
743
744
745
746
        }
    }

    static public function row_to_csv($row)
    {
        $row = (array) $row;

        array_walk($row, function ($field) {
            return strtr($field, ['"' => '""', "\r\n" => "\n"]);
        });

        return sprintf("\"%s\"\r\n", implode('","', $row));
    }
}







|
|





733
734
735
736
737
738
739
740
741
742
743
744
745
746
        }
    }

    static public function row_to_csv($row)
    {
        $row = (array) $row;

        array_walk($row, function (&$field) {
            $field = strtr($field, ['"' => '""', "\r\n" => "\n"]);
        });

        return sprintf("\"%s\"\r\n", implode('","', $row));
    }
}