fix tests
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user