whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [1/1] Commit bc444bb: use untainted version of name
Date Mon, 11 Jan 2016 13:23:27 GMT
Commit bc444bb47c81da7623b2ea4021b29abb4a69e265:
    use untainted version of name


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
www/secmail/models/mailbox.rb                                | + -
------------------------------------------------------------
2 changes: 1 additions, 1 deletions.
------------------------------------------------------------


diff --git a/www/secmail/models/mailbox.rb b/www/secmail/models/mailbox.rb
index 9091ec7..095767c 100644
--- a/www/secmail/models/mailbox.rb
+++ b/www/secmail/models/mailbox.rb
@@ -40,8 +40,8 @@ def initialize(name)
     name = File.basename(name, '.yml')
 
     if name =~ /^\d+$/
-      @mbox = Dir["#{ARCHIVE}/#{name}", "#{ARCHIVE}/#{name}.gz"].first.untaint
       @name = name.untaint
+      @mbox = Dir["#{ARCHIVE}/#{@name}", "#{ARCHIVE}/#{@name}.gz"].first.untaint
     else
       @name = name.split('.').first
       @mbox = "#{ARCHIVE}/#{name}"

Mime
View raw message