Skip to content

fix(scripting): escape embedded quotes in display-text names - #245

Merged
fuzzzerd merged 1 commit into
masterfrom
fuzzz/quote-escaping-display-names
Jul 14, 2026
Merged

fix(scripting): escape embedded quotes in display-text names#245
fuzzzerd merged 1 commit into
masterfrom
fuzzz/quote-escaping-display-names

Conversation

@fuzzzerd

Copy link
Copy Markdown
Owner

Summary

  • Names quoted in a step's display line (script, layout, table, menu-set) had no escape convention, so a name containing a literal quote rendered ambiguously with no round-trip guarantee
  • Adds DisplayQuoting centralizing the quote/unquote convention FileMaker's own calculation strings use (a literal quote is doubled rather than left bare), and replaces the seven hand-rolled quote emitters/parsers (Perform Script, Perform Script on Server[ with Callback], Go to Layout, Go to Related Record, Install Menu Set, Install OnTimer Script) with calls into the shared helper

Test plan

  • dotnet test passes, including new round-trip tests for names containing embedded quotes

Closes #221

Names quoted in a step's display line (script, layout, table, menu-set)
had no escape convention, so a name containing a literal quote rendered
ambiguously and its round-trip correctness was untested. DisplayQuoting
centralizes the quote/unquote logic FileMaker's own calculation strings
use: a literal quote is doubled rather than left bare.

- Add DisplayQuoting with Quote/QuoteWithId/TryParseQuoted/
  TryParseQuotedWithId/TryParseNamedRef helpers.
- Replace the seven hand-rolled quote emitters and parsers (Perform
  Script, Perform Script on Server[ with Callback], Go to Layout, Go to
  Related Record, Install Menu Set, Install OnTimer Script) with calls
  into the shared helper.
- Add round-trip tests for names containing embedded quotes.

Closes #221
@github-actions

Copy link
Copy Markdown

Test Results

✔️ Tests 2267 / 2267 - passed in 17.2s
✔️ Coverage 79.83% - passed with 70% threshold
📏 11395 / 13456 lines covered 🌿 3513 / 5218 branches covered
🔍 click here for more details

✏️ updated for commit 6c3b80d

@fuzzzerd
fuzzzerd merged commit f088c28 into master Jul 14, 2026
6 checks passed
@fuzzzerd
fuzzzerd deleted the fuzzz/quote-escaping-display-names branch July 14, 2026 04:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Display text quotes script/layout/menu-set names without an escape convention

1 participant