Created
March 1, 2013 18:31
-
-
Save jbbarth/5066714 to your computer and use it in GitHub Desktop.
deface override to fix a problem at work
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Deface::Override.new :virtual_path => 'account/login', | |
:name => 'fix-back-url-escape', | |
:insert_before => '#login-form', | |
:text => '<% params[:back_url] = CGI.unescape(params[:back_url]) if params[:back_url].match(/^https?%/) %>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment