This is an automated email from the ASF dual-hosted git repository.
curcuru 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 736b481 Untaint when we're doing the dir traverse
736b481 is described below
commit 736b481bffad703e78e8d76994c606afee25832d
Author: Shane Curcuru <[email protected]>
AuthorDate: Tue May 8 09:33:53 2018 -0400
Untaint when we're doing the dir traverse
---
lib/whimsy/logparser.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/whimsy/logparser.rb b/lib/whimsy/logparser.rb
index be40fd0..a538dfe 100755
--- a/lib/whimsy/logparser.rb
+++ b/lib/whimsy/logparser.rb
@@ -158,7 +158,7 @@ module LogParser
# @return hash of arrays of interesting entries
def parse_error_logs(d = ERROR_LOG_DIR, logs = {})
Dir[File.join(d, 'error.lo*')].each do |f|
- parse_error_log(f, logs)
+ parse_error_log(f.untaint, logs)
end
return logs
end
@@ -190,7 +190,7 @@ module LogParser
# @return hash of arrays of interesting entries
def parse_whimsy_errors(d = ERROR_LOG_DIR, logs = {})
Dir[File.join(d, 'whimsy_error.lo*')].each do |f|
- parse_whimsy_error(f, logs)
+ parse_whimsy_error(f.untaint, logs)
end
return logs
end
--
To stop receiving notification emails like this one, please contact
[email protected].