You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2012/06/19 03:17:39 UTC
svn commit: r1351552 - /openejb/site/trunk/cgi-bin/builds.cgi
Author: dblevins
Date: Tue Jun 19 01:17:38 2012
New Revision: 1351552
URL: http://svn.apache.org/viewvc?rev=1351552&view=rev
Log:
fully detainted the script. crossing fingers the path to wget is correct on the target machine
Modified:
openejb/site/trunk/cgi-bin/builds.cgi
Modified: openejb/site/trunk/cgi-bin/builds.cgi
URL: http://svn.apache.org/viewvc/openejb/site/trunk/cgi-bin/builds.cgi?rev=1351552&r1=1351551&r2=1351552&view=diff
==============================================================================
--- openejb/site/trunk/cgi-bin/builds.cgi (original)
+++ openejb/site/trunk/cgi-bin/builds.cgi Tue Jun 19 01:17:38 2012
@@ -2,15 +2,17 @@
use strict;
use warnings;
+$ENV{"PATH"} = "";
print "Content-Type: text/html\n\n";
+
my $artifact = "/apache-tomee/1.0.1-SNAPSHOT/";
$artifact = $ENV{PATH_INFO} if $ENV{PATH_INFO};
-$artifact =~ m,^/?(\w[\w-]+)/(\d[\w\d.-]+)/?$, or die "Detainting regexp failed!";
+$artifact =~ m,^/?(\w[\w-]*)/(\d[\w\d.-]*)/?$, or die "Detainting regexp failed!";
$artifact = "/$1/$2/";
-my $content = `wget -q -O - http://repository.apache.org/snapshots/org/apache/openejb$artifact`;
+my $content = `/usr/local/bin/wget -q -O - http://repository.apache.org/snapshots/org/apache/openejb$artifact`;
my $ua = <<EOF;
<script type="text/javascript">