diff options
author | rautenberg <rautenberg@in-silico.ch> | 2012-05-10 09:35:50 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2012-05-10 09:35:50 +0200 |
commit | e523a4bda0507d3e0b17e50e39e873b0c92d3239 (patch) | |
tree | fba553a617a0fd1d24b6fb98c2569834c5e85a6b | |
parent | 4915b3894c547ec5946d5ab2df4bc4737fb6178f (diff) |
fix http https changer in clean uri
-rw-r--r-- | lib/authorization-helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/authorization-helper.rb b/lib/authorization-helper.rb index 92bc865..4b534a5 100644 --- a/lib/authorization-helper.rb +++ b/lib/authorization-helper.rb @@ -67,7 +67,7 @@ module OpenTox # @param [String]subjectid def authorized?(subjectid) request_method = request.env['REQUEST_METHOD'] - uri = clean_uri("#{request.env['rack.url_scheme']}://#{request.env['HTTP_HOST']}#{request.env['REQUEST_URI']}").sub("http://","https://") + uri = clean_uri("#{request.env['rack.url_scheme']}://#{request.env['HTTP_HOST']}#{request.env['REQUEST_URI']}") #.sub("http://","https://") request_method = "GET" if request_method == "POST" && uri =~ /\/model\/\d+\/?$/ return OpenTox::Authorization.authorized?(uri, request_method, subjectid) end |