mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-29 08:28:39 +00:00
Prevent null values from being censored
This commit is contained in:
parent
89556d5dfa
commit
d6788f0965
2 changed files with 24 additions and 9 deletions
|
@ -33,9 +33,12 @@ public class UserSettingsPage : BaseLayout
|
|||
|
||||
if (avatarHash != null) this.ProfileUser.IconHash = avatarHash;
|
||||
|
||||
biography = CensorHelper.FilterMessage(biography);
|
||||
|
||||
if (this.ProfileUser.Biography != biography && biography.Length <= 512) this.ProfileUser.Biography = biography;
|
||||
if (biography != null)
|
||||
{
|
||||
biography = CensorHelper.FilterMessage(biography);
|
||||
if (this.ProfileUser.Biography != biography && biography.Length <= 512)
|
||||
this.ProfileUser.Biography = biography;
|
||||
}
|
||||
|
||||
if (ServerConfiguration.Instance.Mail.MailEnabled &&
|
||||
SanitizationHelper.IsValidEmail(email) &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue