Skip to content

Commit

Permalink
Change % dataforms extraction command to &
Browse files Browse the repository at this point in the history
  • Loading branch information
tmolitor-stud-tu committed Oct 7, 2024
1 parent 8f0a624 commit eb680c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Monal/Classes/XMPPDataForm.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ @implementation XMPPDataForm

+(void) initialize
{
dataFormQueryRegex = [NSRegularExpression regularExpressionWithPattern:@"^(\\{(\\*|[^}]+)\\})?([!a-zA-Z0-9_:-]+|\\*)?(\\[([0-9]+)\\])?(@[a-zA-Z0-9_:#-]+|%[a-zA-Z0-9_:#-]+)?" options:0 error:nil];
dataFormQueryRegex = [NSRegularExpression regularExpressionWithPattern:@"^(\\{(\\*|[^}]+)\\})?([!a-zA-Z0-9_:-]+|\\*)?(\\[([0-9]+)\\])?(@[a-zA-Z0-9_:#-]+|&[a-zA-Z0-9_:#-]+)?" options:0 error:nil];
}

//this simple init is not public api because type and form type are mandatory in xep-0004
Expand Down Expand Up @@ -275,7 +275,7 @@ -(id _Nullable) processDataFormQuery:(NSString*) query
return self[[parsedQuery[@"index"] unsignedIntegerValue]][parsedQuery[@"var"]];
return self[parsedQuery[@"var"]];
}
if([parsedQuery[@"extractionCommand"] isEqualToString:@"%"])
if([parsedQuery[@"extractionCommand"] isEqualToString:@"&"])
{
if(parsedQuery[@"index"] != nil)
return [self getField:parsedQuery[@"var"] atIndex:parsedQuery[@"index"]];
Expand Down

0 comments on commit eb680c6

Please sign in to comment.