We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a26b79c commit d467486Copy full SHA for d467486
1 file changed
src/Features/ConfigPlus.cpp
@@ -61,7 +61,7 @@ CON_COMMAND_F(sar_download_file, "sar_download_file <url> <filepath> [directory]
61
}
62
if (!args[1][0] || !args[2][0]) return console->Print(sar_download_file.ThisPtr()->m_pszHelpString);
63
64
- std::string domain = std::regex_replace(args[1], std::regex("^.*://([^/?:]+)/?.*$"), "$1");
+ std::string domain = std::regex_replace(args[1], std::regex("^[htps]*://([^/?:]+)/?.*$"), "$1");
65
66
if (!strcmp(domain.c_str(), args[1])) return console->Print("Invalid URL.\n"); // URL is missing protocol. Reject.
67
0 commit comments