It seems that there is generally acceptable approach process to launch a URL. Start, such as
var url = new Ury (Yuri string); Process.Start (url.AbsoluteUri);
For example it was suggested.
The problem is that if the URL is unreliable, then there are bad things like if the string is @ @ c: \ windows \ system32 \ notepad.exe, then do not ask any questions with the above code Will go
OTOH, if you try to launch a local executable like this browser, you get lots of security check before doing this.
So the question is: How can it be programmed in a clean way (in C #)?
It's not like - The techniques we have considered are:
- Look at Uri Protocol and block anything that is not http / https This hack is.
- Find a browser registered through some regga key, and launch it with Uri on the CRD line. This type of code becomes disturbing and unreliable with some browsers.
That's why I'm hoping for a technology that will be like the launch urlbrübror (url).
It appears that there is no good way to do this, as stated in the URL, Manually filtering manual so it can be just one way.
Comments
Post a Comment