Bug Tracker

Modify

Ticket #8116 (closed bug: worksforme)

Opened 2 years ago

Last modified 15 months ago

sending "+" char using $.ajax to PHP

Reported by: dio Owned by:
Priority: low Milestone: 1.next
Component: ajax Version: 1.5
Keywords: Cc:
Blocking: Blocked by:

Description

Hello,

I am trying to send "+" char using $.ajax method to PHP. The result is that $.ajax is replacing the + with interval. I tried to encodeURIComponent, serialization. When I use base64 encode/decode there is no problem. But still the $.ajax method is replacing the + char with interval and I think its a bug.

Looking forward for your response.

Have a nice day.

Change History

comment:1 Changed 2 years ago by jitter

  • Priority changed from undecided to low
  • Resolution set to worksforme
  • Status changed from new to closed
  • Component changed from unfiled to ajax

Thanks for taking the time to contribute to the jQuery project by writing a bug report.

After checking your report I made this  test case but can't seem to reproduce your issue. The + characters is correctly encoded as %2B. Maybe there is some problem in your decoding code on the server side.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.