Skip to content

Commit c7f37d8

Browse files
authored
FUIEmailAuth.m Crash Fix
If continueURLString is nil, "[NSURLComponents componentsWithString:continueURLString]" will crash. Return NO for this un-handleOpenURL case.
1 parent 84007bc commit c7f37d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

EmailAuth/FirebaseEmailAuthUI/FUIEmailAuth.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ - (BOOL)handleOpenURL:(NSURL *)URL sourceApplication:(nullable NSString *)source
219219
}
220220
if (!continueURLString) {
221221
[FUIAuthBaseViewController showAlertWithMessage:@"Invalid link! Missing continue URL."];
222+
return NO;
222223
}
223224

224225
// Retrieve url parameters from continueUrl

0 commit comments

Comments
 (0)