Skip to content

Commit

Permalink
[#675 state:resolved] dev-user-changer does not escape email addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlarsen committed Mar 18, 2010
1 parent a54349e commit 9e100f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hobo/taglibs/rapid_core.dryml
Expand Up @@ -614,7 +614,7 @@ The context should be a user object. If `this == current_user` the "you" form is
<set user="&Hobo::User.default_user_model"/>
<select-menu if="&user && RAILS_ENV == 'development'"
first-option="#{ht('hobo.dev_user_changer.guest', {:default=>'Guest'})}" options="&user.all(:limit => 30).*.login"
onchange="location.href = '#{dev_support_path}/set_current_user?login=' + this.options[this.selectedIndex].value"
onchange="location.href = '#{dev_support_path}/set_current_user?login=' + encodeURIComponent(this.options[this.selectedIndex].value)"
selected="#{current_user.login}"
class="dev-user-changer"
merge-attrs/>
Expand Down

0 comments on commit 9e100f1

Please sign in to comment.