cvs: php4 /ext/standard file.c
| From: | Rasmus Lerdorf | Date: | Sat, 19 May 2001 22:50:45 +0000 |
| Subject: | cvs: php4 /ext/standard file.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-5860@lists.php.net to get a copy of this message | ||
rasmus Sat May 19 15:50:45 2001 EDT
Modified files:
/php4/ext/standard file.c
Log:
Fix bug #9526
Index: php4/ext/standard/file.c
diff -u php4/ext/standard/file.c:1.160 php4/ext/standard/file.c:1.161
--- php4/ext/standard/file.c:1.160 Fri May 18 16:38:46 2001
+++ php4/ext/standard/file.c Sat May 19 15:50:44 2001
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: file.c,v 1.160 2001/05/18 23:38:46 sas Exp $ */
+/* $Id: file.c,v 1.161 2001/05/19 22:50:44 rasmus Exp $ */
/* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
@@ -1894,7 +1894,15 @@
RETURN_FALSE;
}
+ if (php_check_open_basedir((*source)->value.str.val)) {
+ RETURN_FALSE;
+ }
+
if (PG(safe_mode) &&(!php_checkuid((*target)->value.str.val, NULL,
CHECKUID_CHECK_FILE_AND_DIR))) {
+ RETURN_FALSE;
+ }
+
+ if (php_check_open_basedir((*target)->value.str.val)) {
RETURN_FALSE;
}