Shared CSV utility with formula-injection protection; use it on Activity

オープン
#14 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@nilhn9660 がすでに取り組んでいます。

2026年11月21日 から。

  • #40 @nilhn9660 による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
typescript
領域
frontend

調査の方向性

Start with the CSV export in web/app/activity/page.tsx, which currently escapes only quotes. The issue proposes a new lib/csv.ts exporting toCsv(rows) that quotes all fields, neutralises cells starting with = + - @ tab or carriage return, and adds a UTF-8 BOM; the existing Activity export should switch to it. Done means a =HYPERLINK(...) description exports as inert text, normal rows round-trip, and unit tests cover these cases. Note that open pull request #40 is already linked, so check it before starting.

索引モデルが issue の本文から書いたものです。

説明

difficulty: intermediate help wanted refactor security Stellar Wave web

Difficulty: Intermediate

Description

The CSV export in web/app/activity/page.tsx only escapes quotes. Descriptions are arbitrary on-chain text, so anyone can create an invoice whose description starts with =, +, - or @. That is the classic CSV/formula-injection vector when someone opens the export in Excel.

Implementation suggestions

Add lib/csv.ts with toCsv(rows). It quotes every field, doubles quotes, prefixes a ' to cells starting with = + - @ \t \r, and adds a UTF-8 BOM so Excel renders Naira and Unicode correctly.

Acceptance criteria

  • A description of =HYPERLINK(...) exports as inert text.
  • Normal data round-trips.
  • The existing Activity export uses the util.
  • Unit tests are included.

Dependencies / related

Blocks #15 (History export reuses this util). Tests use #13.

主要言語
TypeScript
スター
0
フォーク
4
平均マージ
54分
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Yormee-103/PayLoop のほかの issue

Yormee-103/PayLoop の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。