mirror of
https://github.com/bitwarden/android.git
synced 2025-01-06 08:17:34 +03:00
a18f74a72a
* [EC-980] Added iOS otpauth handler (#2370) * EC-980 added Bitwarden as otpauth scheme handler * EC-980 Fix format * [EC-981] OTP handling - Set to selected cipher (#2404) * EC-981 Started adding OTP to existing cipher. Reused AutofillCiphersPage for the cipher selection and refactored it so that we have more code reuse * EC-981 Fix navigation on otp handling * EC-981 Fix formatting * EC-981 Added otp cipher selection callout and add close toolbar item when needed * PM-1131 implemented cipher creation from otp handling flow with otp key filled (#2407) * PM-1133 Updated empty states for search and cipher selection on otp flow (#2408)
18 lines
415 B
C#
18 lines
415 B
C#
using System;
|
|
|
|
namespace Bit.Core.Utilities
|
|
{
|
|
public static class UriExtensions
|
|
{
|
|
public static string UnescapeDataString(string uriString)
|
|
{
|
|
string unescapedUri;
|
|
while ((unescapedUri = System.Uri.UnescapeDataString(uriString)) != uriString)
|
|
{
|
|
uriString = unescapedUri;
|
|
}
|
|
|
|
return unescapedUri;
|
|
}
|
|
}
|
|
}
|