Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Mitigate XSS via EXIF #21

Merged
merged 1 commit into from

2 participants

Egor Homakov Harlow Ward
Egor Homakov

No description provided.

Harlow Ward

Thanks for the PR :star2:

Harlow Ward harlow merged commit bb89543 into from
Harlow Ward harlow closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 11, 2013
  1. Egor Homakov

    Mitigate XSS via EXIF

    homakov authored
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 0 deletions.
  1. +3 0  app/models/friend.rb
3  app/models/friend.rb
View
@@ -7,4 +7,7 @@ class Friend < ActiveRecord::Base
square: '200x200#',
medium: '300x300>'
}
+
+ validates_attachment :avatar, :content_type => { :content_type => "image/jpg" }
+
end
Something went wrong with that request. Please try again.