Fix json parsing with invalid chars like \u0000 preventing some channels from loading

This commit is contained in:
Brahim Hadriche committed 2025-11-14 15:47:49 -05:00
1 parent 9a319eab75
commit b5261d900f
27 files changed
+61 -32

No files matched your search

@@ -804,7 +804,7 @@ namespace Http
' (such as "newest", "oldest", etc.), we'll ignore it, as it is not supported.
sortBy = request.query.sort_by
if not StringUtils.IsNullOrEmpty(sortBy) and sortBy.StartsWith("{")
sortBy = ParseJson(sortBy)
sortBy = StringUtils.ParseJsonSafe(sortBy)
if IsAssociativeArray(sortBy)
if sortBy.DoesExist("params")
options.params = sortBy.params