public
Rubygem
Description: Ramaze is a simple, light and modular open-source web application framework written in Ruby.
Homepage: http://ramaze.net
Clone URL: git://github.com/manveru/ramaze.git
Click here to lend your support to: ramaze and make a donation at www.pledgie.com !
Fix faulty rewrite by Global.prefix
manveru (author)
Sun Jun 29 23:47:50 -0700 2008
commit  8fde4e2a7e3689ed6e241a55bfa048a2a231350e
tree    bbf3e5faca21aa5767bb959c532e1af98ea8431e
parent  f0d2a7cf2f8f8436a6e48d3333f71e6c1b6419ff
...
30
31
32
33
 
 
34
35
36
...
30
31
32
 
33
34
35
36
37
0
@@ -30,7 +30,8 @@ module Ramaze
0
       # for the given path from rack_request.
0
       def handle
0
         path = request.path_info.squeeze('/')
0
-        path.sub!(/^#{Regexp.escape(Global.prefix)}/, '')
0
+        path.sub!(/^#{Regexp.escape(Global.prefix)}/, '/')
0
+        path.squeeze!('/')
0
 
0
         if new_path = Rewrite.resolve(path)
0
           path = new_path

Comments