Skip to content

Commit

Permalink
Fixes #7: Wrong end-of-document detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikskuh committed Jun 12, 2020
1 parent c71a08e commit 89263ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/about/updates.gemini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Adds support for transient client certificates
* Adds support for permanent client certificates
* Added this changelog to the software itself
* Fixed bug: Status bar label now does elide links that are too long instead of resizing the window.
* Fixed bug: Gopher end-of-file marker is now better detected.

## 0.2
* Implement Ctrl+D/*Add to favourites* menu item
Expand Down Expand Up @@ -35,4 +37,4 @@
* Improved image pan and zooming. Explore those graphics!

## 0.1
* Initial release
* Initial release
4 changes: 2 additions & 2 deletions src/gopherclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ void GopherClient::on_readRead()

if(not is_processing_binary) {
// Strip the "lone dot" from gopher data
if(int index = body.indexOf(".\r\n"); index >= 0) {
body.resize(index);
if(int index = body.indexOf("\r\n.\r\n"); index >= 0) {
body.resize(index + 2);
socket.close();
}
}
Expand Down

0 comments on commit 89263ec

Please sign in to comment.