Skip to content

Commit

Permalink
Clear query string in UrlHandlerProxyActivity
Browse files Browse the repository at this point in the history
Gerrit 3.7.0 emails add `?usp=email` at the end of 'View Change' URL.
  • Loading branch information
luk1337 committed Mar 19, 2023
1 parent 17545e3 commit 2c765fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
}

// Check we have something we allow to handle
final Uri uri = getIntent().getData();
final Uri uri = getIntent().getData().buildUpon().clearQuery().build();
String scheme = uri.getScheme();
if (scheme == null || (!scheme.equals("http") && !scheme.equals("https"))) {
finish();
Expand Down

0 comments on commit 2c765fd

Please sign in to comment.