Fix #4678: Validate custom CSS.
* Make it an error to add invalid custom CSS to your account. * Add a fix script to remove custom CSS from all accounts with invalid CSS.
This commit is contained in:
@@ -113,7 +113,7 @@ class UsersController < ApplicationController
|
||||
end
|
||||
|
||||
def custom_style
|
||||
@css = CurrentUser.user.custom_style
|
||||
@custom_css = CurrentUser.user.custom_css
|
||||
expires_in 10.years
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user