The source for the catcrafts.net website
  • C++ 85.3%
  • Shell 11.2%
  • CSS 2.9%
  • WGSL 0.4%
  • JavaScript 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jorijn van der Graaf f51105a768
checkout: an address field is one line, and the invoice prints it as text
The invoice is clearsigned, and its "Billed and shipped to" block is the
buyer's own words: name, street, postal code and city went into it as
typed. A name with a line break in it could write lines of its own into
a document the shop signs. One with no line break could still open a
heading ("# CREDIT NOTE") or, together with the street and the city, a
table, because each of those fields starts a line.

Checkout now refuses those four fields when they hold a line break or a
control character: the C0 and C1 controls, U+2028 and U+2029, and the
bidirectional embedding, override and isolate controls, which make a
line display in another order than it is stored. A tab is the
exception. A single-line input drops line breaks from a paste and keeps
tabs, so "Hoofdstraat<TAB>12" is a real buyer's address, and it is
stored with the space the tab stood for. Form::SingleLine is the one
definition of what counts.

The invoice builder applies the same function to whatever the record
holds, since a record can be older than the check or written by hand,
and prints the block indented four spaces. That is Markdown's literal
block: nothing in it is read as markup, and it reads the same as plain
text. The item in the amounts table is held to its cell too, because a
colour the catalogue no longer lists is printed as the ledger has it,
and checkout no longer stores a posted colour for a product that has no
variants.

ShouldBuildInvoices checks the property on the document (every line of
the block is blank or indented) rather than on particular strings, and
ShouldValidateForms pins the edges of each character range.

Found in the security review of 2026-11-26; the Markdown half by the
adversarial review of the first fix. No priced product is listed, so
none of it was reachable yet.

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
2026-11-26 11:05:35 +01:00
.forgejo/workflows CI: give the deploy runner a label of its own (catcrafts-deploy) 2026-10-17 00:22:50 +02:00
content markdown fix 2026-08-18 11:12:24 +02:00
deploy bank: Nostro reads the bank's callback, and the shop's bunq code is gone 2026-11-25 15:08:42 +01:00
images removed fp6 from shop 2026-09-05 18:38:39 +02:00
implementations posts and avif 2026-08-10 01:37:26 +02:00
interfaces rewrite 2026-08-05 04:18:37 +02:00
server checkout: an address field is one line, and the invoice prints it as text 2026-11-26 11:05:35 +01:00
shaders webgpu demo 2026-07-19 01:13:30 +02:00
shared/interfaces checkout: an address field is one line, and the invoice prints it as text 2026-11-26 11:05:35 +01:00
styles bank: the order page offers a payto link and quotes one reference 2026-11-25 15:33:50 +01:00
tests checkout: an address field is one line, and the invoice prints it as text 2026-11-26 11:05:35 +01:00
tools dev: tools/dev.sh builds and serves through the Crafter.Build Flatpak 2026-11-25 15:33:50 +01:00
.gitignore crypto fix 2026-08-19 23:55:01 +02:00
apple-touch-icon.png added missing icons 2026-08-18 21:21:41 +02:00
catcrafts-head.js added missing icons 2026-08-18 21:21:41 +02:00
favicon.ico added missing icons 2026-08-18 21:21:41 +02:00
favicon.svg new logo 2026-08-05 23:52:40 +02:00
LICENSE inital commit 2025-11-12 20:58:07 +01:00
project.cpp bank: Nostro reads the bank's callback, and the shop's bunq code is gone 2026-11-25 15:08:42 +01:00
README.md fixed links 2026-08-08 20:04:36 +02:00
robots.txt about page 2026-08-05 07:05:00 +02:00

catcrafts.net

This is the source code for catcrafts.net, a website built entirely in C++ using the Crafter.Graphics library.

./tools/dev.sh

This will compile the project and serve it locally on http:://localhost:8080.

This project is source available for educational and viewing purposes only. No permission is granted to copy, modify, distribute, or create derivative works.