about summary refs log tree commit homepage
path: root/extras
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-09-20 10:06:45 +0000
committerEric Wong <e@80x24.org>2014-09-20 10:06:45 +0000
commitd7383b15d3628d56ec0f46c501214d888865acf8 (patch)
treec93bf6f1d2092428b379d8aa6258b2716da7da0f /extras
parentef16914521dda4fcc8ee77ab44696fa58b749d37 (diff)
downloadyahns-d7383b15d3628d56ec0f46c501214d888865acf8.tar.gz
Oops.
Diffstat (limited to 'extras')
-rw-r--r--extras/autoindex.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/autoindex.rb b/extras/autoindex.rb
index 0ae7260..0fe2f53 100644
--- a/extras/autoindex.rb
+++ b/extras/autoindex.rb
@@ -119,7 +119,7 @@ class Autoindex
     dir.close if dir
   end
 
-  def r(code, msg = nil, env = nil)
+  def r(code, exc = nil, env = nil)
     if env && exc && logger = env["rack.logger"]
       msg = exc.message
       msg = msg.dump if /[[:cntrl:]]/ =~ msg # prevent code injection