mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-16 21:16:35 +00:00
Merge pull request #4124 from madpilot78/Fix_Windows_Renamed_File
Skip anything after an # symbol in the filename.
This commit is contained in:
@@ -37,6 +37,11 @@ pub fn get_license_from_string(s: &str) -> ResultType<License> {
|
||||
s
|
||||
};
|
||||
if s.contains("host=") {
|
||||
let s = if s.contains("#") {
|
||||
&s[0..s.find("#").unwrap_or(s.len())]
|
||||
} else {
|
||||
s
|
||||
};
|
||||
let strs: Vec<&str> = s.split("host=").collect();
|
||||
if strs.len() == 2 {
|
||||
let strs2: Vec<&str> = strs[1].split(",key=").collect();
|
||||
|
||||
Reference in New Issue
Block a user