From 8c73680e64d22ce1306971cab92b4a182a783446 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Tue, 21 Oct 2008 22:05:21 -0400 Subject: [PATCH] Rename Field#value to Field#escaped_value --- lib/webrat/core/field.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/webrat/core/field.rb b/lib/webrat/core/field.rb index e5a366c..dde96ca 100644 --- a/lib/webrat/core/field.rb +++ b/lib/webrat/core/field.rb @@ -56,7 +56,7 @@ module Webrat def to_param return nil if disabled? - param_parser.parse_query_parameters("#{name}=#{value}") + param_parser.parse_query_parameters("#{name}=#{escaped_value}") end def set(value) @@ -77,7 +77,7 @@ module Webrat @element["name"] end - def value + def escaped_value CGI.escape(@value.to_s) end