summaryrefslogtreecommitdiff
path: root/mail/p5-razor-agents/patches/patch-ab
blob: eee3d6922f3da0b39267480ed0be1c5eb282e4d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
$NetBSD: patch-ab,v 1.1 2003/09/27 13:20:25 heinz Exp $

--- lib/Razor2/Client/Agent.pm.orig	Wed Nov 20 01:26:05 2002
+++ lib/Razor2/Client/Agent.pm
@@ -969,6 +969,7 @@ sub loadservercache {
     my @fns;
     if (opendir D,$self->{razorhome}) {
         @fns = map "$self->{razorhome}/$_", grep /^server\.[\S]+\.conf$/, readdir D;
+        @fns = map { /^(\S+)$/, $1 } @fns; # untaint
         closedir D;
     }
     foreach (@fns) {