Merge branch 'hotfix/0.0.3.2'
This commit is contained in:
commit
3e32472dbb
4 changed files with 14 additions and 2 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
# 0.0.3.2
|
||||||
|
|
||||||
|
* Fix XSS vulnerability in conversations#new [#4010](https://github.com/diaspora/diaspora/issues/4010)
|
||||||
|
|
||||||
# 0.0.3.1
|
# 0.0.3.1
|
||||||
|
|
||||||
* exec foreman in ./script/server to replace the process so that we can Ctrl+C it again.
|
* exec foreman in ./script/server to replace the process so that we can Ctrl+C it again.
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
keyDelay: 0,
|
keyDelay: 0,
|
||||||
startText: '',
|
startText: '',
|
||||||
emptyText: '#{t('no_results')}',
|
emptyText: '#{t('no_results')}',
|
||||||
preFill: [{name : "#{params[:name]}",
|
preFill: [{name : "#{h params[:name]}",
|
||||||
value : "#{@contact_ids}"}]
|
value : "#{@contact_ids}"}]
|
||||||
});
|
});
|
||||||
autocompleteInput.focus();
|
autocompleteInput.focus();
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
version:
|
version:
|
||||||
number: "0.0.3.1"
|
number: "0.0.3.2"
|
||||||
heroku: false
|
heroku: false
|
||||||
environment:
|
environment:
|
||||||
url: "http://localhost:3000/"
|
url: "http://localhost:3000/"
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,14 @@ describe ConversationsController do
|
||||||
get :new, :aspect_id => alice.aspects.first.id
|
get :new, :aspect_id => alice.aspects.first.id
|
||||||
assigns(:contact_ids).should == alice.aspects.first.contacts.map(&:id).join(',')
|
assigns(:contact_ids).should == alice.aspects.first.contacts.map(&:id).join(',')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it "does not allow XSS via the name parameter" do
|
||||||
|
["</script><script>alert(1);</script>",
|
||||||
|
'"}]});alert(1);(function f() {var foo = [{b:"'].each do |xss|
|
||||||
|
get :new, name: xss
|
||||||
|
response.body.should_not include xss
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe '#index' do
|
describe '#index' do
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue