Skip to content

Commit 47af5b2

Browse files
authored
To resolve Security issue
To resolve this issue "Security alert unsafe implementation of WebViewClient.onReceivedSslError handler. " of Google Play store
1 parent 293124b commit 47af5b2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ASNECore/src/main/java/com/github/gorbin/asne/core/OAuthActivity.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,13 @@ public boolean shouldOverrideUrlLoading(WebView view, String url) {
123123
return super.shouldOverrideUrlLoading(view, url);
124124
}
125125

126+
127+
@Override
128+
public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
129+
// In case of SslError cancel that request
130+
handler.cancel();
131+
}
132+
126133
@Override
127134
public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
128135
super.onReceivedError(view, errorCode, description, failingUrl);

0 commit comments

Comments
 (0)