]> git.pld-linux.org Git - packages/php.git/blob - php-opendir.patch
http://bugs.php.net/patch-display.php?bug_id=53516&patch=open_basedir-5.2.15-fix...
[packages/php.git] / php-opendir.patch
1 diff -ruN php-5.2.15/main/fopen_wrappers.c php-5.2.15.ofi/main/fopen_wrappers.c
2 --- php-5.2.15/main/fopen_wrappers.c    2010-12-09 18:04:29.000000000 +0100
3 +++ php-5.2.15.ofi/main/fopen_wrappers.c        2010-12-10 11:32:02.000000000 +0100
4 @@ -192,7 +192,7 @@
5                 if (strncmp(resolved_basedir, resolved_name, resolved_basedir_len) == 0) {
6  #endif
7                         if (resolved_name_len > resolved_basedir_len &&
8 -                               resolved_name[resolved_basedir_len] != PHP_DIR_SEPARATOR) {
9 +                               resolved_name[resolved_basedir_len - 1] != PHP_DIR_SEPARATOR) {
10                                 return -1;
11                         } else {
12                                 /* File is in the right directory */
This page took 0.073064 seconds and 3 git commands to generate.