Limit text length and number of level labels

This commit is contained in:
Slendy 2022-09-18 15:27:54 -05:00
parent 40d7562660
commit 2a44e85a30
No known key found for this signature in database
GPG key ID: 7288D68361B91428
3 changed files with 5 additions and 3 deletions

View file

@ -37,7 +37,7 @@ public class UserSettingsPage : BaseLayout
biography = SanitizationHelper.SanitizeString(biography);
if (this.ProfileUser.Biography != biography) this.ProfileUser.Biography = biography;
if (this.ProfileUser.Biography != biography && biography.Length <= 512) this.ProfileUser.Biography = biography;
if (ServerConfiguration.Instance.Mail.MailEnabled && IsValidEmail(email) && (this.User == this.ProfileUser || this.User.IsAdmin))
{