Opened 8 years ago
Closed 8 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 8 years ago by
Status: | new → open |
---|
comment:2 Changed 8 years ago by
Resolution: | → migrated |
---|---|
Status: | open → closed |
Migrated to https://github.com/jquery/jquery/issues/1799
Note: See
TracTickets for help on using
tickets.
We should either document this or fix it so that it only does so for the currently-documented case of
jsonp
.