mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-24 01:11:12 +00:00
robots.txt: disallow crawling dynamically generated PDF documents (#31617).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@19867 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
8d2d557f2c
commit
09db3e7131
@ -13,3 +13,5 @@ Disallow: <%= url_for(search_path) %>
|
||||
Disallow: <%= url_for(issues_path(:sort => '')) %>
|
||||
Disallow: <%= url_for(issues_path(:query_id => '')) %>
|
||||
Disallow: <%= url_for(issues_path) %>?*set_filter=
|
||||
Disallow: <%= url_for(issues_path(:trailing_slash => true)) %>*.pdf$
|
||||
Disallow: <%= url_for(projects_path(:trailing_slash => true)) %>*.pdf$
|
||||
|
||||
@ -31,5 +31,7 @@ class WelcomeTest < Redmine::IntegrationTest
|
||||
assert @response.body.match(%r{^Disallow: /projects/ecookbook/issues\r?$})
|
||||
assert @response.body.match(%r{^Disallow: /issues\?sort=\r?$})
|
||||
assert @response.body.match(%r{^Disallow: /issues\?\*set_filter=\r?$})
|
||||
assert @response.body.match(%r{^Disallow: /issues/\*\.pdf\$\r?$})
|
||||
assert @response.body.match(%r{^Disallow: /projects/\*\.pdf\$\r?$})
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user