fix tests

This commit is contained in:
Toks
2013-06-30 11:37:15 -04:00
parent 513122c480
commit 51a7e36509
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ class StaticController < ApplicationController
def accept_terms_of_service
cookies.permanent[:accepted_tos] = "1"
url = params[:url] if params[:url].start_with? '/'
url = params[:url] if params[:url] && params[:url].start_with?("/")
redirect_to(url || posts_path)
end