##// END OF EJS Templates
Make sure that #api_key_from_request returns a String....
Jean-Philippe Lang -
r9615:be4ad600589c
parent child
Show More
@@ -486,9 +486,9 class ApplicationController < ActionController::Base
486 # Returns the API key present in the request
486 # Returns the API key present in the request
487 def api_key_from_request
487 def api_key_from_request
488 if params[:key].present?
488 if params[:key].present?
489 params[:key]
489 params[:key].to_s
490 elsif request.headers["X-Redmine-API-Key"].present?
490 elsif request.headers["X-Redmine-API-Key"].present?
491 request.headers["X-Redmine-API-Key"]
491 request.headers["X-Redmine-API-Key"].to_s
492 end
492 end
493 end
493 end
494
494
General Comments 0
You need to be logged in to leave comments. Login now