Skip to content

Panic on passwords without percent encoding #182

@millerjs

Description

@millerjs

Passwords that have not properly been percent encoded

fn main() {
    let _ = Connection::connect("postgres://user:%1*@localhost", SslMode::None);
}

result in a panic

thread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: InvalidHexCharacter { c: '*', index: 1 }', ../src/libcore/result.rs:746
note: Run with `RUST_BACKTRACE=1` for a backtrace.
error: Process didn't exit successfully: `target/debug/rspsql` (exit code: 101)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions