Эх сурвалжийг харах

Merge pull request #2565 from nextcloud/bug-authentication-urlnormalization

authentication: Fixed HTTPS prefixed URL normalization.
Andy Scherzinger 7 жил өмнө
parent
commit
35b7412bcd

+ 1 - 1
src/main/java/com/owncloud/android/authentication/AuthenticatorUrlUtils.java

@@ -78,7 +78,7 @@ public abstract class AuthenticatorUrlUtils {
             normalizedUrl = normalizedUrl.trim();
 
             if (!normalizedUrl.toLowerCase(Locale.ROOT).startsWith(HTTP_PROTOCOL) &&
-                    !normalizedUrl.toLowerCase(Locale.ROOT).startsWith(HTTP_PROTOCOL)) {
+                    !normalizedUrl.toLowerCase(Locale.ROOT).startsWith(HTTPS_PROTOCOL)) {
                 if (sslWhenUnprefixed) {
                     normalizedUrl = HTTPS_PROTOCOL + normalizedUrl;
                 } else {