We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffad9a8 commit f5f974dCopy full SHA for f5f974d
src/otp/from_otp_uri.rs
@@ -9,7 +9,8 @@ pub trait FromOtpUri: Sized {
9
10
impl FromOtpUri for OTPElement {
11
fn from_otp_uri(otp_uri: &str) -> color_eyre::Result<Self> {
12
- let parsed_uri = Url::parse(otp_uri).map_err(ErrReport::from)?;
+ let decoded = urlencoding::decode(otp_uri).map_err(ErrReport::from)?;
13
+ let parsed_uri = Url::parse(&decoded).map_err(ErrReport::from)?;
14
15
let otp_type = parsed_uri
16
.host_str()
0 commit comments