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 c09d973  Needs untainting on Ruby 2.5
c09d973 is described below

commit c09d9734089ca8900de516433c6d1de631036309
Author: Sebb <[email protected]>
AuthorDate: Fri Jan 10 00:29:37 2020 +0000

    Needs untainting on Ruby 2.5
---
 lib/whimsy/logparser.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/whimsy/logparser.rb b/lib/whimsy/logparser.rb
index d47d50b..77e4515 100755
--- a/lib/whimsy/logparser.rb
+++ b/lib/whimsy/logparser.rb
@@ -210,9 +210,10 @@ module LogParser
   # @param d directory to scan for *error.log*
   # @return hash of arrays of interesting entries
   def get_errors(current, dir: ERROR_LOG_DIR)
+    dir.untaint
     if current
       logs = LogParser.parse_whimsy_error(File.join(dir, 'whimsy_error.log'))
-      error_log = Dir[File.join(dir, 'error?log')].first
+      error_log = Dir[File.join(dir, 'error?log')].first.untaint
       LogParser.parse_error_log(error_log, logs) if error_log
     else
       logs = LogParser.parse_whimsy_errors(dir)

Reply via email to