개정판 3b938959
issue #000000 검색 수정
Change-Id: I7ac25e17a0b62f753c52f52b8a77b73bb3bbe2bf
KCOM/Common/Check_Uri.cs | ||
---|---|---|
10 | 10 |
{ |
11 | 11 |
public static void UriCheck(string uristring) |
12 | 12 |
{ |
13 |
if (!(Uri.TryCreate(uristring, UriKind.Absolute, out Uri uri) && uri.Scheme == Uri.UriSchemeHttp))
|
|
13 |
if (!(Uri.TryCreate(uristring, UriKind.Absolute, out Uri uri) && (uri.Scheme == Uri.UriSchemeHttp || uri.Scheme == Uri.UriSchemeHttps)))
|
|
14 | 14 |
{ |
15 | 15 |
throw new Exception(); |
16 | 16 |
} |
... | ... | |
18 | 18 |
|
19 | 19 |
public static bool isUri(string uristring) |
20 | 20 |
{ |
21 |
if (!(Uri.TryCreate(uristring, UriKind.Absolute, out Uri uri) && uri.Scheme == Uri.UriSchemeHttp))
|
|
21 |
if (!(Uri.TryCreate(uristring, UriKind.Absolute, out Uri uri) && (uri.Scheme == Uri.UriSchemeHttp || uri.Scheme == Uri.UriSchemeHttps)))
|
|
22 | 22 |
{ |
23 | 23 |
return false; |
24 | 24 |
} |
내보내기 Unified diff