This project is archived and is in readonly mode.

#4576 ✓wontfix

Rails escapes quotes at when they are at beginning and and of signle-line string

Reported by nkuba | May 11th, 2010 @ 01:28 PM

When there are quotes at the begining and at the end of a textarea rails escapes them, and stores string without quotes. It's not happen with multiline strings.
For example given to textarea declerated as <%= f.text_area :name %>
the text: "Test Scenario"
and I will got:
Parameters: {"commit"=>"Submit", "authenticity_token"=>"YtwwTBw3pyniVxBzHVU5j5ZZ/nouhUqqm1iU59J0W68=", "test"=>{"name"=>"Test scenario"}}

text: "Test
Will produce paramterers with quotes stored
Parameters: {"commit"=>"Submit", "authenticity_token"=>"YtwwTBw3pyniVxBzHVU5j5ZZ/nouhUqqm1iU59J0W68=", "test"=>{"name"=>""Test \r\nScenario""}}

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>