Skip to content

Commit

Permalink
Add BeamMP github to the list of allowed links
Browse files Browse the repository at this point in the history
  • Loading branch information
WiserTixx committed Nov 2, 2024
1 parent 8519e27 commit bd4c9c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Network/Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ void CoreSend(std::string data) {
}

bool IsAllowedLink(const std::string& Link) {
std::regex link_pattern(R"(https:\/\/(?:\w+)?(?:\.)?(?:beammp\.com|beammp\.gg|discord\.gg|patreon\.com\/BeamMP))");
std::regex link_pattern(R"(https:\/\/(?:\w+)?(?:\.)?(?:beammp\.com|beammp\.gg|github.com\/BeamMP\/|discord\.gg|patreon\.com\/BeamMP))");
std::smatch link_match;
return std::regex_search(Link, link_match, link_pattern) && link_match.position() == 0;
}
Expand Down

0 comments on commit bd4c9c3

Please sign in to comment.