Closed (fixed)
Project:
Views Datasource
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
9 Nov 2009 at 07:24 UTC
Updated:
30 Nov 2009 at 04:50 UTC
Jump to comment: Most recent file
This patch contains the following changes I've made:
I'm still a little confused about how to do a patch properly but hopefully this latest one is formatted better than my previous ones.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 627384_views_datasource_json_improvements_v3.patch | 20.22 KB | icylace |
| #1 | 627384_views_datasource_json_improvements_v2.patch | 20.25 KB | icylace |
| views_datasource_json_improvements.patch | 19.58 KB | icylace |
Comments
Comment #1
icylace commentedUpdated the patch with the following:
Comment #2
allisterbeharry commentedLooks good but I'd prefer keeping the JSON Content-type to text/javascript so the output can be displayed in browsers. Any reason you changed it to application/json?
Comment #3
icylace commentedIt avoids a security vulnerability:
http://jibbering.com/blog/?p=514
And "application/json" is in the standard:
http://www.ietf.org/rfc/rfc4627.txt
"text/javascript" may have been necessary in the past with the older render code because of trailing commas that are illegal in JSON but since rendering has improved the proper content type should be used.
Thoughts ?
Also, here's a newer version of the patch that fixes a bug. It removes a call to a non-existent function in the MIT Simile/Exhibit JSON preprocess step.
Comment #4
allisterbeharry commentedOk cool, if that's the standard. Committed to DRUPAL-6--1 branch.