mirror of
https://github.com/redmine/redmine.git
synced 2024-08-27 05:58:46 +02:00
![Jean-Philippe Lang](/assets/img/avatar_default.png)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9604 e93f8b46-1217-0410-a6f0-8f06a7374b81
21 lines
473 B
Ruby
Executable File
21 lines
473 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
|
|
require File.dirname(__FILE__) + '/../config/boot'
|
|
require File.dirname(__FILE__) + '/../config/environment'
|
|
|
|
class Rack::PathInfoRewriter
|
|
def initialize(app)
|
|
@app = app
|
|
end
|
|
|
|
def call(env)
|
|
env.delete('SCRIPT_NAME')
|
|
parts = env['REQUEST_URI'].split('?')
|
|
env['PATH_INFO'] = parts[0]
|
|
env['QUERY_STRING'] = parts[1].to_s
|
|
@app.call(env)
|
|
end
|
|
end
|
|
|
|
Rack::Handler::FastCGI.run Rack::PathInfoRewriter.new(RedmineApp::Application)
|