You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2020/07/06 11:07:39 UTC

[whimsy] branch master updated: Fix up insecure op crash

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 1cbd9c3  Fix up insecure op crash
1cbd9c3 is described below

commit 1cbd9c3431d77989c6fed4a3a756e311a366c284
Author: Sebb <se...@apache.org>
AuthorDate: Mon Jul 6 12:07:30 2020 +0100

    Fix up insecure op crash
---
 tools/wwwdocs.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/wwwdocs.rb b/tools/wwwdocs.rb
index 28a9f9a..0612539 100755
--- a/tools/wwwdocs.rb
+++ b/tools/wwwdocs.rb
@@ -90,7 +90,7 @@ def get_auth
   hash = {}
   files = Dir[WHIMSY_CONF]
   return hash unless files.size == 1 # must match just one
-  file = files.first
+  file = files.first.untaint
   loc = nil
   File.read(file).each_line do |l|
     if l =~ %r{<LocationMatch ([^>]+)>}