myserver-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myserver-commit] [SCM] GNU MyServer branch, master, updated. v0.9.2-272


From: Giuseppe Scrivano
Subject: [myserver-commit] [SCM] GNU MyServer branch, master, updated. v0.9.2-272-g1d031d5
Date: Wed, 28 Jul 2010 19:02:10 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU MyServer".

The branch, master has been updated
       via  1d031d5204a745aa28f34784aeeffccbe28f974c (commit)
      from  1c01f9f9491cb6f61df071666a784de603b0acc6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------


commit 1d031d5204a745aa28f34784aeeffccbe28f974c
Author: Giuseppe Scrivano <address@hidden>
Date:   Wed Jul 28 20:59:56 2010 +0200

    Don't raise an exception if the input file does not exist.

diff --git a/myserver/src/http_handler/cgi/cgi.cpp 
b/myserver/src/http_handler/cgi/cgi.cpp
index 2ca9359..5695687 100644
--- a/myserver/src/http_handler/cgi/cgi.cpp
+++ b/myserver/src/http_handler/cgi/cgi.cpp
@@ -236,7 +236,8 @@ int Cgi::send (HttpThreadContext* td, const char* 
scriptpath,
                                                     | MYSERVER_SECURITY_CONF
                                                     | MYSERVER_SERVER_CONF, 
""));
 
-      stdInFile.openFile (td->inputData.getFilename (), File::READ);
+      if (td->inputData.getFilename ()[0] != '\0')
+        stdInFile.openFile (td->inputData.getFilename (), File::READ);
 
       spi.stdIn = (FileHandle) stdInFile.getHandle ();
       spi.stdError = (FileHandle) stdOutFile.getWriteHandle ();

-----------------------------------------------------------------------

Summary of changes:
 myserver/src/http_handler/cgi/cgi.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU MyServer



reply via email to

[Prev in Thread] Current Thread [Next in Thread]