You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-commits@perl.apache.org by to...@apache.org on 2008/07/16 14:45:32 UTC
svn commit: r677266 - in /perl/Apache-Test/trunk: Changes
lib/Apache/TestConfig.pm
Author: torsten
Date: Wed Jul 16 05:45:31 2008
New Revision: 677266
URL: http://svn.apache.org/viewvc?rev=677266&view=rev
Log:
Make Apache::TestConfig::untaint_path tolerate undefined arguments
Modified:
perl/Apache-Test/trunk/Changes
perl/Apache-Test/trunk/lib/Apache/TestConfig.pm
Modified: perl/Apache-Test/trunk/Changes
URL: http://svn.apache.org/viewvc/perl/Apache-Test/trunk/Changes?rev=677266&r1=677265&r2=677266&view=diff
==============================================================================
--- perl/Apache-Test/trunk/Changes (original)
+++ perl/Apache-Test/trunk/Changes Wed Jul 16 05:45:31 2008
@@ -8,6 +8,9 @@
=item 1.31-dev
+Make Apache::TestConfig::untaint_path tolerate undefined arguments
+[Torsten Foertsch <torsten.foertsch@gmx.net]
+
Inherit LoadFile directives from the global httpd.conf
[Torsten Foertsch <torsten.foertsch@gmx.net]
Modified: perl/Apache-Test/trunk/lib/Apache/TestConfig.pm
URL: http://svn.apache.org/viewvc/perl/Apache-Test/trunk/lib/Apache/TestConfig.pm?rev=677266&r1=677265&r2=677266&view=diff
==============================================================================
--- perl/Apache-Test/trunk/lib/Apache/TestConfig.pm (original)
+++ perl/Apache-Test/trunk/lib/Apache/TestConfig.pm Wed Jul 16 05:45:31 2008
@@ -1769,6 +1769,7 @@
# return an untainted PATH
sub untaint_path {
my $path = shift;
+ return '' unless defined $path;
($path) = ( $path =~ /(.*)/ );
# win32 uses ';' for a path separator, assume others use ':'
my $sep = WIN32 ? ';' : ':';