Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

observe_field should escape the parameter it is submitting

#216

The base forms of observe_field wind up with us generating javascript like

  parameters: 'q=' + value

value here is just the form elements value, which hasn't been escaped. It should be passed through encodeURIComponent or else the parameters get borked if you type an ampersand in the observed field.

Reported by Frederick Cheung · May 17th, 2008 @ 07:14 PM

State: resolved
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Repository
    Repository
    • State changed from new to resolved

    (from [17d1319c480e58e28641b243da50ae5e5eab89dc]) Ensure observe_field encodes value parameter. [#216 state:resolved]

    Signed-off-by: Pratik Naik

    http://github.com/rails/rails/co...

    May 19th, 2008 @ 10:32 AM