Skip to main content

Bug Tracker

Side navigation

#15249 closed bug (migrated)

Opened September 29, 2014 06:49AM UTC

Closed October 21, 2014 01:02AM UTC

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.

Attachments (0)
Change History (2)

Changed October 16, 2014 08:07PM UTC by dmethvin comment:1

status: newopen

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

Changed October 21, 2014 01:02AM UTC by m_gol comment:2

resolution: → migrated
status: openclosed