You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by hi...@apache.org on 2007/10/09 13:32:07 UTC

svn commit: r583115 - in /harmony/standard/site: docs/download.cgi xdocs/download.cgi

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 "$@"