public
Rubygem
Description: Merb Core: All you need. None you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-core.git
Should fix blank path.
wycats (author)
Fri Feb 29 20:14:02 -0800 2008
commit  b4d85b39a0412d96d514275b26513db8936f4967
tree    5907ee6cb6ef69bdb8ff22eab80822485f3d9fed
parent  ccadba5fba167f309af1828ffa0805816c84a65e
...
319
320
321
322
 
323
324
325
...
319
320
321
 
322
323
324
325
0
@@ -319,7 +319,7 @@ module Merb
0
     # The URI without the query string. Strips trailing "/" and reduces
0
     # duplicate "/" to a single "/".
0
     def path
0
- path = (uri ? uri.split('?').first : '').squeeze("/")
0
+ path = (uri.empty? ? '' : uri.split('?').first).squeeze("/")
0
       path = path[0..-2] if (path[-1] == ?/) && path.size > 1
0
       path
0
     end

Comments

    No one has commented yet.