aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
authorrhenium <rhenium@rhe.jp>2014-10-06 08:53:22 +0900
committerrhenium <rhenium@rhe.jp>2014-10-06 08:53:22 +0900
commit5d32ae79c63074de3ab11296e4ebbe7d42f37d3b (patch)
treed697c5868f0e28efa1360da05782f5b1ef884a26 /app/helpers/application_helper.rb
parent3d1a4777e35618ae56a5e1e4d0d48451ed71c6d7 (diff)
downloadaclog-5d32ae79c63074de3ab11296e4ebbe7d42f37d3b.tar.gz
web: introduce Content Security Policy (CSP)
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb3
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