From 27dfeb75b15b2410deb0c37a1ebda34428beeb71 Mon Sep 17 00:00:00 2001 From: albert Date: Wed, 20 Mar 2013 22:05:02 -0700 Subject: [PATCH] fix atom feeds --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index c68707cb5..688b5e79b 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -13,7 +13,7 @@ class ApplicationController < ActionController::Base protected def api_check - if request.format.to_s =~ /json|xml/ + if request.format.to_s =~ /\/json|\/xml/ if CurrentUser.is_anonymous? render :text => "401 Not Authorized\n", :layout => false, :status => 401 return false