diff --git a/src/server.cpp b/src/server.cpp
index 7fcae82e..efaeb650 100755
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -1590,7 +1590,7 @@ void CServer::WriteHTMLChannelList()
}
QTextStream streamFileOut ( &serverFileListFile );
- streamFileOut << strServerNameWithPort << endl << "
" << endl;
+ streamFileOut << strServerNameWithPort.toHtmlEscaped() << endl << "" << endl;
// depending on number of connected clients write list
if ( GetNumberOfConnectedClients() == 0 )
@@ -1605,7 +1605,7 @@ void CServer::WriteHTMLChannelList()
{
if ( vecChannels[i].IsConnected() )
{
- streamFileOut << " - " << vecChannels[i].GetName() << "
" << endl;
+ streamFileOut << " - " << vecChannels[i].GetName().toHtmlEscaped() << "
" << endl;
}
}
}