Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #7702 (closed defect: duplicate)

Opened 2 years ago

Last modified 2 years ago

Double Encoding of Form Elements

Reported by: naph Assigned to: sam
Priority: normal Milestone: 1.x
Component: Prototype Version: edge
Severity: normal Keywords:
Cc:

Description

Hi, i don't know if this is really a bug, or if it's been fixed already but i found that with my app (i'm using prototype 1.5.0) when using the "serialize" form method, if i had multiple elememts with the same name (eg. tag[] to pass elements as an array to my app) then the data for these elements was being urlencoded twice. so my app would receive the following data...

0: bar%2540foo 1: foo%2540bar

instead of...

0: bar@foo 1: foo@bar

i tracked down the problem and have attached the patch i came up with. hope it helps.

rod.

Attachments

double-encode-problem.patch (486 bytes) - added by naph on 03/03/07 01:41:53.
patch for double encode problem

Change History

03/03/07 01:41:53 changed by naph

  • attachment double-encode-problem.patch added.

patch for double encode problem

03/08/07 21:55:06 changed by mislav

  • status changed from new to closed.
  • resolution set to duplicate.

thanks man - this is now included in #7421