Skip to content

Commit

Permalink
Handle the escaping of 0xFF
Browse files Browse the repository at this point in the history
Fixes #33
  • Loading branch information
fubar-coder committed Aug 1, 2018
1 parent 1350da4 commit 8736c56
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/FubarDev.FtpServer/TelnetInputParser{T}.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ public IReadOnlyList<T> Collect(byte[] data, int offset, int length)
case 0xF4:
result.AddRange(InterruptProcess());
break;
case 0xFF:
// Double-Escape
result.AddRange(DataReceived(data, index, length: 1));
break;
default:
Debug.WriteLine("TELNET: Unknown command received - skipping 0xFF");
dataOffset = index;
Expand Down

0 comments on commit 8736c56

Please sign in to comment.