mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-16 04:08:08 +01:00
Strip non-breaking space HTML entities from the text feeds. Fixes #443.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@441 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
6aae34156e
commit
3af574f76e
5 changed files with 8 additions and 3 deletions
|
|
@ -121,7 +121,7 @@ class ContextsControllerTest < TodoContainerControllerTestBase
|
|||
@request.session['user_id'] = users(:admin_user).id
|
||||
get :index, { :format => "txt" }
|
||||
assert_equal 'text/plain; charset=utf-8', @response.headers["Content-Type"]
|
||||
#puts @response.body
|
||||
assert !(/ /.match(@response.body))
|
||||
end
|
||||
|
||||
def test_text_feed_not_accessible_to_anonymous_user_without_token
|
||||
|
|
|
|||
|
|
@ -159,6 +159,7 @@ class ProjectsControllerTest < TodoContainerControllerTestBase
|
|||
@request.session['user_id'] = users(:admin_user).id
|
||||
get :index, { :format => "txt" }
|
||||
assert_equal 'text/plain; charset=utf-8', @response.headers["Content-Type"]
|
||||
assert !(/ /.match(@response.body))
|
||||
#puts @response.body
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue