提交 3a6783b8 authored 作者: Mitch Capper's avatar Mitch Capper

Lets be a bit cautious and only allow the update path to be a url

上级 a47819fd
......@@ -495,6 +495,8 @@ namespace FSClient {
MessageBoxButton buttons = MessageBoxButton.OK;
if (!String.IsNullOrWhiteSpace(version_url)) {
if (!version_url.StartsWith("http")) //a bit of a security check, lets make sure the update website isn't trying to get the user to launch a local process
version_url = "https://" + version_url;
version_message += "\nDo you want to proceed to the url below(default browser will be launched) to obtain FSClient:\n" + version_url;
buttons = MessageBoxButton.YesNo;
}
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论