cvs: php-src(PHP_5_2) /sapi/cgi cgi_main.c
| From: | Antony Dovgal | Date: | Thu, 28 Dec 2006 22:36:53 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /sapi/cgi cgi_main.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-42471@lists.php.net to get a copy of this message | ||
tony2001 Thu Dec 28 22:36:53 2006 UTC
Modified files: (Branch: PHP_5_2)
/php-src/sapi/cgi cgi_main.c
Log:
MFH
http://cvs.php.net/viewvc.cgi/php-src/sapi/cgi/cgi_main.c?r1=1.267.2.15.2.18&r2=1.267.2.15.2.19&diff_format=u
Index: php-src/sapi/cgi/cgi_main.c
diff -u php-src/sapi/cgi/cgi_main.c:1.267.2.15.2.18 php-src/sapi/cgi/cgi_main.c:1.267.2.15.2.19
--- php-src/sapi/cgi/cgi_main.c:1.267.2.15.2.18 Wed Nov 15 13:33:41 2006
+++ php-src/sapi/cgi/cgi_main.c Thu Dec 28 22:36:53 2006
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: cgi_main.c,v 1.267.2.15.2.18 2006/11/15 13:33:41 dmitry Exp $ */
+/* $Id: cgi_main.c,v 1.267.2.15.2.19 2006/12/28 22:36:53 tony2001 Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -849,7 +849,7 @@
int path_translated_len = 0;
char *path_translated = NULL;
- if (env_document_root[l - 1] == '/') {
+ if (l && env_document_root[l - 1] == '/') {
--l;
}