From f7ca22d00d5fc87b292da1a1dfcedc6be4121a9b Mon Sep 17 00:00:00 2001 From: Toks Date: Sat, 20 Jul 2013 18:01:24 -0400 Subject: [PATCH] fixes #1871 --- app/models/user.rb | 1 - app/views/users/custom_style.css.erb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index b721217bc..8c1717de9 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -690,4 +690,3 @@ class User < ActiveRecord::Base end end end - diff --git a/app/views/users/custom_style.css.erb b/app/views/users/custom_style.css.erb index c3609df5c..c2879128d 100644 --- a/app/views/users/custom_style.css.erb +++ b/app/views/users/custom_style.css.erb @@ -1 +1 @@ -<%= CurrentUser.user.custom_style.html_safe %> \ No newline at end of file +<%= CurrentUser.user.custom_style.gsub(/(?:!important)?\s*;?\s*\}/, "!important;}").html_safe %> \ No newline at end of file