diff options
-rw-r--r-- | src/commandhandler.cpp | 2 | ||||
-rw-r--r-- | src/gui/widgets/itemlinkhandler.cpp | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp index 6876f4463..bdce12dea 100644 --- a/src/commandhandler.cpp +++ b/src/commandhandler.cpp @@ -1223,7 +1223,7 @@ void CommandHandler::handleUrl(const std::string &args, std::string url = args; if (!strStartWith(url, "http")) url = "http://" + url; - std::string str = strprintf("[@@%s|%s@@]", url.c_str(), args.c_str()); + std::string str = strprintf("[@@%s |%s@@]", url.c_str(), args.c_str()); outStringNormal(tab, str, str); } } diff --git a/src/gui/widgets/itemlinkhandler.cpp b/src/gui/widgets/itemlinkhandler.cpp index be2c02335..5ba400499 100644 --- a/src/gui/widgets/itemlinkhandler.cpp +++ b/src/gui/widgets/itemlinkhandler.cpp @@ -77,6 +77,8 @@ void ItemLinkHandler::handleLink(const std::string &link, } else { - openBrowser(link); + std::string url = link; + replaceAll(url, " ", ""); + openBrowser(url); } } |