Commit 5f9f5ae
Take every out-of-band directive out of the connect screen, not just MCP
TelnetNegotiationCore's framing now follows the specification rather than
a stricter reading of it: a line-initial #$# that cannot be acted on is
dropped rather than passed through, in a session or outside one. MCP says
so plainly -- an unrecognised message on that prefix is silently dropped,
not shown to a reader.
For the crawler that means the other three lines go too. All 57
line-initial #$# lines in the catalogue now come out of the screen, not
just the 54 MCP offers: also two "#$# SDWC-*-NOWRAP" and one
"#$#LOGIN_TRIGGER", which are somebody's client directives sent on the
prefix reserved for exactly that, and which no reader should have been
shown either.
Line-initial is still what keeps ASCII art safe, and the catalogue is the
evidence: of the 59 screens matching #$# anywhere, the 3 that match only
mid-line are all art. Both cases have a test.
555 tests green.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent ef5bbca commit 5f9f5ae
2 files changed
Lines changed: 34 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1102 | 1102 | | |
1103 | 1103 | | |
1104 | 1104 | | |
1105 | | - | |
1106 | | - | |
1107 | | - | |
1108 | | - | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
1109 | 1112 | | |
1110 | 1113 | | |
1111 | 1114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1713 | 1713 | | |
1714 | 1714 | | |
1715 | 1715 | | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
1716 | 1743 | | |
1717 | 1744 | | |
1718 | 1745 | | |
| |||
0 commit comments