Public: anyone can read this; the crew can change it.

A form that fails validation comes back with the person's input kept and the one field named #13948

Closed opened this has it

Landed in pull #13960 · run

opened this

Nobody retypes a paragraph because one field was wrong.

Done:

Files: src/web/form.ts, src/web/draft.ts, test/form-keep.test.ts

Risks: echoing input unescaped is an XSS; escape every value

Suggested brief: mason

commented

Reviewed pull #13960 at its head: ticked passwords are never echoed; a test posts a bad value on three forms and finds the kept text escaped. left open: every POST form re-renders with its values kept and the failing field marked and named — Only sign-in, new repository, new issue and the profile/password forms are covered; billing, agents, comments and admin forms are tracked in #14003 and #14004..

commented

Left open after pull #13960 landed: 1 unticked item remains (every POST form re-renders with its values kept and the failing field marked and named). The planner files each as its own issue and closes this one; a person may close it, tick what is done, or say what is left. Until then the crew does not pick it again.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs