harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r583115 - in /harmony/standard/site: docs/download.cgi xdocs/download.cgi
Date Tue, 09 Oct 2007 11:32:07 GMT
Author: hindessm
Date: Tue Oct  9 04:32:05 2007
New Revision: 583115

URL: http://svn.apache.org/viewvc?rev=583115&view=rev
Log:
Avoid forking extra process.
I can't think why a cgi script would have command line arguments but
if we are going to pass them to a second script we should preserve
the quoting of the supplied arguments - i.e. preserve spaces in arguments
and do the "safe" thing with arguments with ';rm -rf /' in.

Modified:
    harmony/standard/site/docs/download.cgi
    harmony/standard/site/xdocs/download.cgi

Modified: harmony/standard/site/docs/download.cgi
URL: http://svn.apache.org/viewvc/harmony/standard/site/docs/download.cgi?rev=583115&r1=583114&r2=583115&view=diff
==============================================================================
--- harmony/standard/site/docs/download.cgi (original)
+++ harmony/standard/site/docs/download.cgi Tue Oct  9 04:32:05 2007
@@ -3,4 +3,4 @@
 # (we must change to that directory in order for python to pick up the
 #  python includes correctly)
 cd /www/www.apache.org/dyn/mirrors
-/www/www.apache.org/dyn/mirrors/mirrors.cgi $*
+exec /www/www.apache.org/dyn/mirrors/mirrors.cgi "$@"

Modified: harmony/standard/site/xdocs/download.cgi
URL: http://svn.apache.org/viewvc/harmony/standard/site/xdocs/download.cgi?rev=583115&r1=583114&r2=583115&view=diff
==============================================================================
--- harmony/standard/site/xdocs/download.cgi (original)
+++ harmony/standard/site/xdocs/download.cgi Tue Oct  9 04:32:05 2007
@@ -3,4 +3,4 @@
 # (we must change to that directory in order for python to pick up the
 #  python includes correctly)
 cd /www/www.apache.org/dyn/mirrors
-/www/www.apache.org/dyn/mirrors/mirrors.cgi $*
+exec /www/www.apache.org/dyn/mirrors/mirrors.cgi "$@"



Mime
View raw message