Skip to content

Question mark is replaced by 'jQuery1520046861610282212496_1411972375451'. #1799

Closed
@mgol

Description

@mgol

Originally reported by wjj871125 at: http://bugs.jquery.com/ticket/15249

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.

Issue reported for jQuery 1.5.2

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions