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 5c39934  Allow for frozen values (eg. in test setups)
5c39934 is described below

commit 5c39934c6787ffe60619ff0dd103c4520259d1b8
Author: Sebb <[email protected]>
AuthorDate: Wed Jul 8 14:33:26 2020 +0100

    Allow for frozen values (eg. in test setups)
---
 lib/whimsy/asf/rack.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/whimsy/asf/rack.rb b/lib/whimsy/asf/rack.rb
index 887a796..7b3b1b4 100644
--- a/lib/whimsy/asf/rack.rb
+++ b/lib/whimsy/asf/rack.rb
@@ -20,8 +20,8 @@ module ASF
         env.user, env.password = Base64.
           decode64(auth[/^Basic ([A-Za-z0-9+\/=]+)$/,1].to_s).split(':',2)
       end
-      env.user.untaint
-      env.password.untaint
+      env.user.untaint unless env.user.frozen?
+      env.password.untaint unless env.password.frozen?
 
       env['REMOTE_USER'] ||= env.user
 

Reply via email to