فهرست منبع

Fixes #7541: Catched invalid argument in URI parsing

Juan Carlos González Cabrero 9 سال پیش
والد
کامیت
2ca29f3e29
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      src/com/owncloud/android/authentication/AuthenticatorActivity.java

+ 5 - 1
src/com/owncloud/android/authentication/AuthenticatorActivity.java

@@ -809,7 +809,11 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
             uri = stripIndexPhpOrAppsFiles(uri, mHostUrlInput);
 
             // Handle internationalized domain names
-            uri = DisplayUtils.convertIdn(uri, true);
+            try {
+                uri = DisplayUtils.convertIdn(uri, true);
+            } catch (IllegalArgumentException ex) {
+                // Let Owncloud library check the error of the malformed URI
+            }
 
             mServerStatusText = R.string.auth_testing_connection;
             mServerStatusIcon = R.drawable.progress_small;