diff options
author | rhenium <rhenium@rhe.jp> | 2014-10-06 08:53:22 +0900 |
---|---|---|
committer | rhenium <rhenium@rhe.jp> | 2014-10-06 08:53:22 +0900 |
commit | 5d32ae79c63074de3ab11296e4ebbe7d42f37d3b (patch) | |
tree | d697c5868f0e28efa1360da05782f5b1ef884a26 /app/helpers/application_helper.rb | |
parent | 3d1a4777e35618ae56a5e1e4d0d48451ed71c6d7 (diff) | |
download | aclog-5d32ae79c63074de3ab11296e4ebbe7d42f37d3b.tar.gz |
web: introduce Content Security Policy (CSP)
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 5fe6350..ede2c51 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -19,8 +19,7 @@ module ApplicationHelper capture_haml do haml_tag("img.twitter-icon", { src: user.profile_image_url(size), - alt: "@" + user.screen_name, - onerror: "this.src = '#{image_path("profile_image_missing.png")}'" + alt: "@" + user.screen_name }.merge(options)) end end |