Fix "can't modify frozen string" bug with some versions of Rails.

This commit is contained in:
Jacques Distler 2008-10-27 13:40:50 +00:00
parent 8685a29a40
commit 2a967aebb0

View file

@ -382,7 +382,7 @@ class WikiController < ApplicationController
def remote_ip def remote_ip
ip = request.remote_ip ip = request.remote_ip
logger.info(ip) logger.info(ip)
ip.gsub!(Regexp.union(Resolv::IPv4::Regex, Resolv::IPv6::Regex), '\0') || 'bogus address' ip.dup.gsub!(Regexp.union(Resolv::IPv4::Regex, Resolv::IPv6::Regex), '\0') || 'bogus address'
end end
def render_rss(hide_description = false, limit = 15, start_date = nil, end_date = nil) def render_rss(hide_description = false, limit = 15, start_date = nil, end_date = nil)