Changeset 2286 for lang/ruby/ssb

Show
Ignore:
Timestamp:
12/02/07 16:38:56 (13 months ago)
Author:
tokuhirom
Message:

lang/ruby/ssb: webrick にしたときにぶっこわしてたっぽい。すみませんすみません。

Location:
lang/ruby/ssb/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/ssb/trunk/libs/ssb/misc.rb

    r2182 r2286  
    2020      # cookie をフラットに 
    2121      params = { } 
    22       cookies.each do |key,value| 
    23         if value.instance_of?(CGI::Cookie) 
    24           params[key] = value[0].untaint 
    25         else 
    26           params[key] = value.untaint 
    27         end 
     22      cookies.each do |cookie| 
     23        params[cookie.name] = cookie.value.untaint 
    2824      end 
    2925 
  • lang/ruby/ssb/trunk/public_html/javascripts/ssb.js

    r2182 r2286  
    4242    keys.each(function(key) { 
    4343            var val = $F('field_' + key); 
    44             manager.setCookie(key, encodeURIComponent(val)); 
     44            manager.setCookie(key, val); 
    4545        }); 
    4646