app/controllers/concerns/agilibox/back_url_concern.rb in agilibox-1.9.1 vs app/controllers/concerns/agilibox/back_url_concern.rb in agilibox-1.9.3
- old
+ new
@@ -11,10 +11,10 @@
params[:back_url],
request.referer,
default_back_url,
main_app.try(:root_path),
"/",
- ].select(&:present?).first
+ ].find(&:present?)
uri = URI.parse(url)
uri.host = nil
uri.port = nil
uri.scheme = nil