We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2b8ffa commit 634a445Copy full SHA for 634a445
lib/functions.php
@@ -6,6 +6,7 @@
6
use Elgg\Database\Clauses\OrderByClause;
7
use Elgg\Database\Select;
8
use Elgg\Database\QueryBuilder;
9
+use Elgg\Security\Base64Url;
10
11
/**
12
* Check if a invitation code results in a group
@@ -17,7 +18,7 @@
17
18
*/
19
function group_tools_check_group_email_invitation($invite_code, $group_guid = 0) {
20
- if (empty($invite_code)) {
21
+ if (empty($invite_code) || !Base64Url::decode($invite_code)) {
22
return false;
23
}
24
0 commit comments