cvs: /php3 fopen-wrappers.c
| From: | Sascha Schumann | Date: | Sun, 18 Jul 1999 20:31:51 +0000 |
| Subject: | cvs: /php3 fopen-wrappers.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-8701@lists.php.net to get a copy of this message | ||
sas Sun Jul 18 20:31:51 1999 EDT
Modified files:
/php3 fopen-wrappers.c
Log:
extra check
Index: php3/fopen-wrappers.c
diff -u php3/fopen-wrappers.c:1.69 php3/fopen-wrappers.c:1.70
--- php3/fopen-wrappers.c:1.69 Tue Jun 22 10:47:19 1999
+++ php3/fopen-wrappers.c Sun Jul 18 20:31:51 1999
@@ -27,7 +27,7 @@
| Jim Winstead <jimw@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: fopen-wrappers.c,v 1.69 1999/06/22 14:47:19 sas Exp $ */
+/* $Id: fopen-wrappers.c,v 1.70 1999/07/19 00:31:51 sas Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
@@ -475,6 +475,8 @@
unsigned short portno;
if (!strncasecmp(path, "http://", 7)) {
+ if (strlen(path) < 8)
+ return NULL;
resource = url_parse((char *) path);
if (resource == NULL) {
php3_error(E_WARNING, "Invalid URL specified, %s", path);