|
|
@ -84,8 +84,8 @@ public class CommentPublicAppService_Tests : CmsKitApplicationTestBase |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[Theory] |
|
|
[Theory] |
|
|
[InlineData("[ABP Community](https://abp.io/community/)")]
|
|
|
[InlineData("[ABP Community](https://community.abp.io/)")] //not allowed URL
|
|
|
[InlineData("<a href='https://abp.io/docs/latest'>abp.io/docs</a>")] |
|
|
[InlineData("<a href='https://docs.abp.io/en/abp/latest'>docs.abp.io</a>")] //not allowed URL
|
|
|
public async Task CreateAsync_ShouldThrowUserFriendlyException_If_Url_UnAllowed(string text) |
|
|
public async Task CreateAsync_ShouldThrowUserFriendlyException_If_Url_UnAllowed(string text) |
|
|
{ |
|
|
{ |
|
|
_currentUser.Id.Returns(_cmsKitTestData.User2Id); |
|
|
_currentUser.Id.Returns(_cmsKitTestData.User2Id); |
|
|
@ -150,7 +150,7 @@ public class CommentPublicAppService_Tests : CmsKitApplicationTestBase |
|
|
_cmsKitTestData.CommentWithChildId, |
|
|
_cmsKitTestData.CommentWithChildId, |
|
|
new UpdateCommentInput |
|
|
new UpdateCommentInput |
|
|
{ |
|
|
{ |
|
|
Text = "[ABP Community - Update](https://abp.io/community/)", //not allowed URL
|
|
|
Text = "[ABP Community - Update](https://community.abp.io/)", //not allowed URL
|
|
|
} |
|
|
} |
|
|
)); |
|
|
)); |
|
|
} |
|
|
} |
|
|
|