diff options
author | rautenberg <rautenberg@in-silico.ch> | 2013-01-24 13:05:41 +0100 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2013-01-24 13:05:41 +0100 |
commit | 345876e00454d9051ef9b591dbab2a8395083347 (patch) | |
tree | a404468db1400982d7a9b55be95935900337924b | |
parent | d80c339dbda8899cb9d5ae297943611d9fa85475 (diff) |
one step back
-rw-r--r-- | lib/authorization-helper.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/authorization-helper.rb b/lib/authorization-helper.rb index 262ab37..5e2f1d5 100644 --- a/lib/authorization-helper.rb +++ b/lib/authorization-helper.rb @@ -107,7 +107,7 @@ module OpenTox # Get subjectid out of session, params or rack-environment and unescape it if necessary # @return [String] subjectid def get_subjectid - #begin + begin subjectid = nil subjectid = session[:subjectid] if session[:subjectid] subjectid = params[:subjectid] if params[:subjectid] and !subjectid @@ -115,9 +115,9 @@ module OpenTox # see http://rack.rubyforge.org/doc/SPEC.html subjectid = CGI.unescape(subjectid) if subjectid.include?("%23") @subjectid = subjectid - #rescue - # @subjectid = nil - #end + rescue + @subjectid = nil + end end end |