Project

General

Profile

Bug #4913 » accesslog.diff

hron84 (Gabor Garami), 06/22/2011 02:31 AM

View differences:

webrick/accesslog.rb 2011-06-21 19:21:33.310915933 +0200 → webrick/accesslog.rb 2011-06-21 19:18:39.054646832 +0200
when ?e, ?i, ?n, ?o
raise AccessLogError,
"parameter is required for \"#{spec}\"" unless param
param = params[spec][param] ? escape(param) : "-"
param = params[spec][param] ? escape(params[spec][param]) : "-"
when ?t
params[spec].strftime(param || CLF_TIME_FORMAT)
when ?%
    (1-1/1)