Bug Tracker

Opened 4 years ago

Closed 4 years ago

#15249 closed bug (migrated)

Question mark is replaced by 'jQuery1520046861610282212496_1411972375451'.

Reported by: wjj871125 Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.5.2
Keywords: question mark Cc:
Blocked by: Blocking:

Description

Code as follows:

var content = document.getElementById("content").value; jQuery.ajax({

type:'post', url:'add.php', data:"content=" + content, value is '?' dataType : "json", success:function(response){

alert('success:'+response.msg);

}, error: function(msg){

alert(msg);

}

});

Code ends.

When the parameter 'content' value is '?' or '??', its content is replaced by similar content as 'jQuery1520046861610282212496_1411972375451'.

jQuery code

data = data.replace( jsre, replace );

jQuery code end.

These codes maybe need to optimize.

Change History (2)

comment:1 Changed 4 years ago by dmethvin

Status: newopen

We should either document this or fix it so that it only does so for the currently-documented case of jsonp.

comment:2 Changed 4 years ago by m_gol

Resolution: migrated
Status: openclosed
Note: See TracTickets for help on using tickets.