Links mit https sind klickbar

This commit is contained in:
Lyndon Jetten
2019-12-09 12:15:40 +01:00
parent 1ebce8d36c
commit 7bec9afd9b
3 changed files with 13 additions and 18 deletions

View File

@@ -137,11 +137,6 @@ namespace ChatController.ChatKlassen
{
if (word.IndexOfAny(@":.\/".ToCharArray()) != -1)
{
if (Uri.IsWellFormedUriString(word, UriKind.Absolute))
{
return word.StartsWith("http://");
}
if (UrlRegex.IsMatch(word))
{
var uri = new Uri(word, UriKind.RelativeOrAbsolute);