mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-25 06:11:20 -04:00
fix not found error when spiders were hitting with .php
This commit is contained in:
parent
cb8f3f1a6f
commit
6974ad487c
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
|
||||
rescue_from Discourse::NotFound do
|
||||
if request.format.html?
|
||||
if !request.format || request.format.html?
|
||||
# for now do a simple remap, we may look at cleaner ways of doing the render
|
||||
raise ActiveRecord::RecordNotFound
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue