OC-1029: add an extra condition to check of redirection. Check if LocationUrl contain...
[pub/Android/ownCloud.git] / src / com / owncloud / android / operations / RemoteOperationResult.java
index 0a0b932..6c5d8b8 100644 (file)
@@ -313,7 +313,9 @@ public class RemoteOperationResult implements Serializable {
     }
 
     public boolean isTemporalRedirection() {
     }
 
     public boolean isTemporalRedirection() {
-        return (mHttpCode == 302 || mHttpCode == 307);
+        return (mHttpCode == 302 || mHttpCode == 307 || 
+                mRedirectedLocation.toUpperCase().contains("SAML") || 
+                mRedirectedLocation.toLowerCase().contains("wayf"));
     }
 
     public String getRedirectedLocation() {
     }
 
     public String getRedirectedLocation() {