mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
OC-1029: add an extra condition to check of redirection. Check if LocationUrl contains SAML or wayf
This commit is contained in:
parent
68de068092
commit
10f832498d
1 changed files with 3 additions and 1 deletions
|
@ -313,7 +313,9 @@ public class RemoteOperationResult implements Serializable {
|
|||
}
|
||||
|
||||
public boolean isTemporalRedirection() {
|
||||
return (mHttpCode == 302 || mHttpCode == 307);
|
||||
return (mHttpCode == 302 || mHttpCode == 307 ||
|
||||
mRedirectedLocation.toUpperCase().contains("SAML") ||
|
||||
mRedirectedLocation.toLowerCase().contains("wayf"));
|
||||
}
|
||||
|
||||
public String getRedirectedLocation() {
|
||||
|
|
Loading…
Reference in a new issue