Skip to content

Commit

Permalink
Replace URI.unescape with CGI.unescape
Browse files Browse the repository at this point in the history
  • Loading branch information
hennevogel committed Mar 15, 2022
1 parent 0e1c23e commit 8869840
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/api/app/controllers/group_controller.rb
Expand Up @@ -64,7 +64,7 @@ def update

# POST for editing it, adding or remove users
def command
group = Group.find_by_title!(URI.unescape(params[:title]))
group = Group.find_by_title!(CGI.unescape(params[:title]))
authorize group, :update?

user = User.find_by_login!(params[:userid]) if params[:userid]
Expand Down
4 changes: 2 additions & 2 deletions src/api/app/controllers/person_controller.rb
Expand Up @@ -226,9 +226,9 @@ def change_my_password

login = xml.elements['/userchangepasswd/login'].text
password = xml.elements['/userchangepasswd/password'].text
login = URI.unescape(login)
login = CGI.unescape(login)

change_password(login, URI.unescape(password))
change_password(login, CGI.unescape(password))
render_ok
end

Expand Down

0 comments on commit 8869840

Please sign in to comment.