gopher: Handle binary, directory and error types

This commit is contained in:
François Revol 2014-07-25 22:16:29 +02:00
parent 0c1a4ebf8b
commit 2e8b8fd046

View File

@ -430,6 +430,26 @@ BGopherRequest::_ParseInput(bool last)
"<span class=\"text\">" << title << "</span></a>"
"<br/>\n";
break;
case GOPHER_TYPE_BINARY:
case GOPHER_TYPE_BINHEX:
case GOPHER_TYPE_BINARCHIVE:
case GOPHER_TYPE_UUENCODED:
item << "<a href=\"" << link << "\">"
"<span class=\"binary\">" << title << "</span></a>"
"<br/>\n";
break;
case GOPHER_TYPE_DIRECTORY:
/*
* directory link
*/
item << "<a href=\"" << link << "\">"
"<span class=\"dir\">" << title << "</span></a>"
"<br/>\n";
break;
case GOPHER_TYPE_ERROR:
item << "<span class=\"error\">" << title << "</span>"
"<br/>\n";
break;
default:
item << "<div>" << fields.StringAt(FIELD_NAME) << "</div>";
break;