fix some pageless calls (switching to $.parseJSON)
These were missed when we changed all the JSON.parse calls to $.parseJSON to support the new security measures around JSON data sniffing. Refs #6459 Test Plan: Check that the pageless contents loading still works for announcements, inbox items, page views on a user profile, discussion topics, and wiki pages. Change-Id: I3e0b4dafb99aed692a16ac336dd7001735ab0ee8 Reviewed-on: https://gerrit.instructure.com/7192 Reviewed-by: Jacob Fugal <jacob@instructure.com> Tested-by: Hudson <hudson@instructure.com> Reviewed-by: Brian Palmer <brianp@instructure.com>
This commit is contained in:
parent
e347c927e2
commit
ba73b76bfc
|
@ -188,7 +188,7 @@
|
|||
scrape: function(data) {
|
||||
if(typeof(data) == 'string') {
|
||||
try {
|
||||
data = JSON.parse(data);
|
||||
data = $.parseJSON(data);
|
||||
} catch(e) {
|
||||
data = [];
|
||||
}
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
scrape: function(data) {
|
||||
if(typeof(data) == 'string') {
|
||||
try {
|
||||
data = JSON.parse(data);
|
||||
data = $.parseJSON(data);
|
||||
} catch(e) {
|
||||
data = [];
|
||||
}
|
||||
|
|
|
@ -102,7 +102,7 @@
|
|||
scrape: function(data) {
|
||||
if(typeof(data) == 'string') {
|
||||
try {
|
||||
data = JSON.parse(data);
|
||||
data = $.parseJSON(data);
|
||||
} catch(e) {
|
||||
data = [];
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
scrape: function(data) {
|
||||
if(typeof(data) == 'string') {
|
||||
try {
|
||||
data = JSON.parse(data);
|
||||
data = $.parseJSON(data);
|
||||
} catch(e) {
|
||||
data = [];
|
||||
}
|
||||
|
|
|
@ -160,7 +160,7 @@ course will see this page first. You can change that from [the course home page
|
|||
scrape: function(data) {
|
||||
if(typeof(data) == 'string') {
|
||||
try {
|
||||
data = JSON.parse(data);
|
||||
data = $.parseJSON(data);
|
||||
} catch(e) {
|
||||
data = [];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue