This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new ce7ed8f  String might be frozen
ce7ed8f is described below

commit ce7ed8f5ea498d259338d6fae9ea49a7856e5437
Author: Sebb <[email protected]>
AuthorDate: Mon Jul 6 21:24:21 2020 +0100

    String might be frozen
---
 www/roster/views/actions/memstat.json.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/roster/views/actions/memstat.json.rb 
b/www/roster/views/actions/memstat.json.rb
index 9ec7068..4907e05 100644
--- a/www/roster/views/actions/memstat.json.rb
+++ b/www/roster/views/actions/memstat.json.rb
@@ -3,7 +3,7 @@ require 'wunderbar'
 user = ASF::Person.find(@userid)
 entry = user.members_txt(true)
 raise Exception.new("Unable to find member entry for #{@userid}") unless entry
-USERID = user.id.untaint
+USERID = user.id.dup.untaint # might be frozen
 USERMAIL = "#{USERID}@apache.org".untaint
 USERNAME = user.cn.untaint
 TIMESTAMP = (DateTime.now.strftime "%Y-%m-%d %H:%M:%S").untaint

Reply via email to