From 5b529f42d5fcc68b350b7bf10f6b4f7e71b7f9e2 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Thu, 21 Feb 2013 16:19:50 +0100 Subject: NoMethodError for empty subjectid fixed --- lib/authorization-helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/authorization-helper.rb b/lib/authorization-helper.rb index 5e2f1d5..61018d4 100644 --- a/lib/authorization-helper.rb +++ b/lib/authorization-helper.rb @@ -113,7 +113,7 @@ module OpenTox subjectid = params[:subjectid] if params[:subjectid] and !subjectid subjectid = request.env['HTTP_SUBJECTID'] if request.env['HTTP_SUBJECTID'] and !subjectid # see http://rack.rubyforge.org/doc/SPEC.html - subjectid = CGI.unescape(subjectid) if subjectid.include?("%23") + subjectid = CGI.unescape(subjectid) if subjectid and subjectid.include?("%23") @subjectid = subjectid rescue @subjectid = nil -- cgit v1.2.3