Explorar el Código

Add max length for SortBy

Patrick Barron hace 5 años
padre
commit
2831062a3f
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      Jellyfin.Data/Entities/DisplayPreferences.cs

+ 2 - 0
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>