Url decode names

This commit is contained in:
Keivan-sf
2025-07-27 18:29:17 +03:30
parent 291f98f687
commit b3fe8a1fd1
3 changed files with 4 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ fn get_raw_data_from_base64(decoded_base64: &Vec<u8>) -> RawData {
let json = serde_json::from_str::<Value>(json_str).unwrap();
return RawData {
remarks: get_str_field(&json, "ps").unwrap_or(String::from("")),
remarks: url_decode(get_str_field(&json, "ps")).unwrap_or(String::from("")),
uuid: get_str_field(&json, "id"),
port: get_str_field(&json, "port")
.and_then(|s| Some(s.parse::<u16>().expect("port is not a number"))),