A
Alun Harford
I have a chat-type program that automatically highlights URLs. When
somebody clicks on one of those URLs, I use:
System.Diagnostics.Process.Start(url);
to start the default browser at that URL. This works, but has a security
issue I'd like to avoid.
Lets say somebody sends the URL:
file://c:\fire_nuclear_missiles.exe
Now, when somebody in the military uses my program, there's an issue
because that program gets run, instead of the default browser (assuming
that program exists and really does launch nuclear missiles).
If the .NET framework had instead opened the default browser at that
location, it would have instead asked the user if they wanted to
download/run that file. That's the behavior I want.
Does anybody know how to do this?
I tried:
System.Windows.Forms.Help.ShowHelp(null, url);
But that has the same problem.
Alun Harford
somebody clicks on one of those URLs, I use:
System.Diagnostics.Process.Start(url);
to start the default browser at that URL. This works, but has a security
issue I'd like to avoid.
Lets say somebody sends the URL:
file://c:\fire_nuclear_missiles.exe
Now, when somebody in the military uses my program, there's an issue
because that program gets run, instead of the default browser (assuming
that program exists and really does launch nuclear missiles).
If the .NET framework had instead opened the default browser at that
location, it would have instead asked the user if they wanted to
download/run that file. That's the behavior I want.
Does anybody know how to do this?
I tried:
System.Windows.Forms.Help.ShowHelp(null, url);
But that has the same problem.
Alun Harford