Merge branch 'review/pr9' into release/0.6.0

This commit is contained in:
Дмитрий committed 2026-10-03 22:45:37 +05:00
commit 46ba3fa3dc
5 files changed
+467 -3

No files matched your search

+1 -2
View File
@@ -1155,8 +1155,7 @@ fn open_link(url: String) -> std::result::Result<(), UiError> {
if !(issue || catalog || ALLOWED.iter().any(|p| url.starts_with(p))) || !chars_ok || url.len() > 12_000 {
return Err(Error::Invalid("That link is not allowed.".into()).into());
}
// explorer.exe opens the address in the default browser without going through a shell.
std::process::Command::new("explorer.exe").arg(&url).spawn().map_err(|e| Error::Invalid(e.to_string()))?;
tauri_plugin_opener::open_url(&url, None::<&str>).map_err(|e| Error::Invalid(e.to_string()))?;
Ok(())
}