Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

cleaned up request_path checks

  • Loading branch information...
commit 68b50906d9a0ebd6a9223424dded6e3e95a9a673 1 parent 2411bcd
Jeroen Jacobs authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/render.rb
4 lib/render.rb
View
@@ -39,8 +39,8 @@ def render_simple_cms(options = {}, local_assigns = {}, &block)
session[:cms_data][@cms_params][:prefix] = @prefix
request_path = request.env["REQUEST_PATH"]
- request_path = request.env["REQUEST_URI"] if request_path.nil? || request_path.empty?
- request_path = request.env["SCRIPT_NAME"] if request_path.nil? || request_path.empty?
+ request_path = request.env["REQUEST_URI"] if request_path.blank?
+ request_path = request.env["SCRIPT_NAME"] if request_path.blank?
session[:cms_data][@cms_params][:referer] = request_path.nil? ? "/" : request_path.gsub(/\/sites.*skizmo.com/,"")
logger.error "request_path: " + request_path.to_s
logger.error("\nsession data: " + session[:cms_data].inspect + "\n\n")
Please sign in to comment.
Something went wrong with that request. Please try again.