Fix json parsing with invalid chars like \u0000 preventing some channels from loading
This commit is contained in:
1 parent
9a319eab75
commit
b5261d900f
27 files changed
+61
-32
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user