Add banned word i've got error when view the post

  • 57 Views
  • Last Post 6 days ago
lucy posted this 2 weeks ago

Add banned word i've got error when view the post, anybody test it

Order By: Standard | Newest | Votes
Peddev posted this 2 weeks ago

does the post contain the word that you banned?

lucy posted this 2 weeks ago

I've tested, the website corrupt. Have you test this ?

Peddev posted this 2 weeks ago

I'm using banned words but haven't had any problems. Just wondered if banning a word that already appears in posts had an adverse affect.

Not sure what you mean by "website corrupt", presumably it throws an error? posting that would probably help. 

Does the site build? if so, when you view the page with the error does it not break on a particular line?

lucy posted this 6 days ago

private static string StarCensoredMatch(Match m)

        {

            var word = m.Captures[0].Value;

            return new string(Convert.ToChar(ConfigUtils.GetAppSetting("BannedWordReplaceCharactor")), word.Length);

        }

i've got error in this method

for example: var word = m.Captures[0].Value; // jav

return new string(Convert.ToChar(ConfigUtils.GetAppSetting("BannedWordReplaceCharactor")), word.Length);// Value cannot be null

How can i fix it?

Close