We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d989a4b commit a26b79cCopy full SHA for a26b79c
1 file changed
src/Features/ConfigPlus.cpp
@@ -65,7 +65,8 @@ CON_COMMAND_F(sar_download_file, "sar_download_file <url> <filepath> [directory]
65
66
if (!strcmp(domain.c_str(), args[1])) return console->Print("Invalid URL.\n"); // URL is missing protocol. Reject.
67
68
- if (domain.length() < 10 || !!strcmp(domain.c_str() + domain.length() - 10, "portal2.sr")) {
+ if (domain.length() < 10 || !!strcmp(domain.c_str() + domain.length() - 10, "portal2.sr") &&
69
+ !Utils::StartsWith(args[1], "https://raw.githubusercontent.com/p2sr/")) {
70
return console->Print("URL domain is not portal2.sr.\n");
71
}
72
0 commit comments