aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2020-07-17 14:46:17 -0400
committerPatrick Barron <barronpm@gmail.com>2020-07-17 16:11:54 -0400
commit2831062a3f1e8d40ecf28ebef9255a40be00480a (patch)
tree11b24321d9553587cfe5f71b53934bd1745b5d81
parent9e17db59cd3f4824dfe9e29a3a8b5267249748c0 (diff)
Add max length for SortBy
-rw-r--r--Jellyfin.Data/Entities/DisplayPreferences.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Jellyfin.Data/Entities/DisplayPreferences.cs b/Jellyfin.Data/Entities/DisplayPreferences.cs
index 928407e7a..6bc6b7de1 100644
--- a/Jellyfin.Data/Entities/DisplayPreferences.cs
+++ b/Jellyfin.Data/Entities/DisplayPreferences.cs
@@ -120,6 +120,8 @@ namespace Jellyfin.Data.Entities
/// <summary>
/// Gets or sets what the view should be sorted by.
/// </summary>
+ [MaxLength(64)]
+ [StringLength(64)]
public string SortBy { get; set; }
/// <summary>