Project

General

Profile

Actions

Bug #2062

closed

Fixed JSON in mod_uploadprogress

Added by double about 15 years ago. Updated over 8 years ago.

Status:
Obsolete
Priority:
Normal
Category:
mod_uploadprogress
Target version:
ASK QUESTIONS IN Forums:

Description

JSON does not contain "new Object({...}) but only {...}
http://en.wikipedia.org/wiki/JSON

Otherwise mod_uploadprogress does not work with JS libraries
like Mootools, jQuery, ...

Easy patch:

473c473
< buffer_append_string_len(b, CONST_STR_LEN("new Object({ 'state' : 'starting' })\r\n"));
---

buffer_append_string_len(b, CONST_STR_LEN("{ 'state' : 'starting' }\r\n"));

481c481
< buffer_copy_string_len(b, CONST_STR_LEN("new Object({ 'state' : "));
---

buffer_copy_string_len(b, CONST_STR_LEN("{ 'state' : "));

498c498
< buffer_append_string_len(b, CONST_STR_LEN("})\r\n"));
---

buffer_append_string_len(b, CONST_STR_LEN("}\r\n"));

Actions #1

Updated by gstrauss over 8 years ago

  • Target version set to 1.5.0
Actions #2

Updated by gstrauss over 8 years ago

  • Missing in 1.5.x set to Yes
Actions #3

Updated by gstrauss over 8 years ago

  • Status changed from New to Obsolete
Actions

Also available in: Atom