cvs: php4 /ext/standard file.c
| From: | Derick Rethans | Date: | Tue, 02 Jul 2002 06:16:37 +0000 |
| Subject: | cvs: php4 /ext/standard file.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12653@lists.php.net to get a copy of this message | ||
derick Tue Jul 2 02:16:37 2002 EDT
Modified files:
/php4/ext/standard file.c
Log:
- Fix for bug #15547 (Patch by Justin Garrett <usjgarrett@byu.edu>)
Index: php4/ext/standard/file.c
diff -u php4/ext/standard/file.c:1.234 php4/ext/standard/file.c:1.235
--- php4/ext/standard/file.c:1.234 Tue Jun 18 08:16:27 2002
+++ php4/ext/standard/file.c Tue Jul 2 02:16:35 2002
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: file.c,v 1.234 2002/06/18 12:16:27 hholzgra Exp $ */
+/* $Id: file.c,v 1.235 2002/07/02 06:16:35 derick Exp $ */
/* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
@@ -525,6 +525,11 @@
}
convert_to_string_ex(arg1);
convert_to_string_ex(arg2);
+
+ if (php_check_open_basedir(Z_STRVAL_PP(arg1) TSRMLS_CC)) {
+ RETURN_FALSE;
+ }
+
d = estrndup(Z_STRVAL_PP(arg1), Z_STRLEN_PP(arg1));
strlcpy(p, Z_STRVAL_PP(arg2), sizeof(p));