From a7cde08ada55b80cb90e38576ac76d2d967bc35f Mon Sep 17 00:00:00 2001 From: acetone Date: Thu, 30 Dec 2021 13:30:22 -0500 Subject: [PATCH] server info link fix --- httpserver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httpserver.cpp b/httpserver.cpp index 82c3f9b..2e85876 100644 --- a/httpserver.cpp +++ b/httpserver.cpp @@ -573,7 +573,7 @@ void HttpServer::writeMainPage(QTcpSocket *socket, QString &urlPath, bool isHead if (s.first.isEmpty()) continue; // empty server name? QString htmlServersSection = HTML_SERVER_SECTION; - replaceTag(htmlServersSection, "ABOUT_SERVER", "/serverinformation/"+server); + replaceTag(htmlServersSection, "ABOUT_SERVER", "/serverinformation/"+s.first); replaceTag(htmlServersSection, "SERVER_NAME", s.first); QString htmlChannelLineS; @@ -1383,7 +1383,7 @@ void HttpServer::writeAboutServerPage(QTcpSocket *socket, QString &urlPath, bool htmlServersSection.replace("
", "
"); } - replaceTag(htmlServersSection, "ABOUT_SERVER", "/serverinformation/"+server); + replaceTag(htmlServersSection, "ABOUT_SERVER", "/serverinformation/"+s.first); replaceTag(htmlServersSection, "SERVER_NAME", s.first); if (s.first == originalServerName) { htmlServersSection.replace("{{ONLINE_STATUS}}",