mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-10 21:31:30 +03:00
Fix crash if id == "base64_"
This commit is contained in:
@@ -931,7 +931,7 @@ impl PeerConfig {
|
|||||||
.to_owned();
|
.to_owned();
|
||||||
|
|
||||||
let id_decoded_string: String;
|
let id_decoded_string: String;
|
||||||
if id.starts_with("base64_") {
|
if id.starts_with("base64_") && id != "base64_" {
|
||||||
let id_decoded = base64::decode(&id[7..], base64::Variant::Original)
|
let id_decoded = base64::decode(&id[7..], base64::Variant::Original)
|
||||||
.unwrap_or(Vec::new());
|
.unwrap_or(Vec::new());
|
||||||
id_decoded_string =
|
id_decoded_string =
|
||||||
|
|||||||
Reference in New Issue
Block a user