summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-01-07 21:18:07 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2013-01-07 21:18:07 +0100
commit929f5c6d149ee0b3a94174c764d7e5101366e26b (patch)
treed1472de65cbc6f7dcb544ba98e9089c8425807ad /lib
parent6e91356b5a142a9ddef44a6162a5cbcfbaa1da0d (diff)
downloadzorglub-929f5c6d149ee0b3a94174c764d7e5101366e26b.zip
zorglub-929f5c6d149ee0b3a94174c764d7e5101366e26b.tar.gz
use regex instead of string, fix cgit colorisation
Diffstat (limited to 'lib')
-rw-r--r--lib/zorglub/node.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb
index c39c4b9..6619010 100644
--- a/lib/zorglub/node.rb
+++ b/lib/zorglub/node.rb
@@ -222,7 +222,7 @@ module Zorglub
end
#
def call env
- meth, *args = env['PATH_INFO'].sub(/^\//,'').split '/'
+ meth, *args = env['PATH_INFO'].sub(/^\//,'').split(/\//)
meth||= 'index'
puts "=> #{meth}(#{args.join ','})" if app.opt :debug
node = self.new env, {:engine=>engine,:layout=>layout,:view=>r(meth),:method=>meth,:args=>args,:static=>static}