Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php5
:
EL5
>
php-5.2.15
> php-5.2.15-open_basedir.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File php-5.2.15-open_basedir.patch of Package php-5.2.15 (Revision 3)
Currently displaying revision
3
,
show latest
--- main/fopen_wrappers.c 2010/12/09 17:04:29 306136 +++ main/fopen_wrappers.c 2010/12/10 12:50:25 306184 @@ -192,7 +192,7 @@ if (strncmp(resolved_basedir, resolved_name, resolved_basedir_len) == 0) { #endif if (resolved_name_len > resolved_basedir_len && - resolved_name[resolved_basedir_len] != PHP_DIR_SEPARATOR) { + resolved_name[resolved_basedir_len - 1] != PHP_DIR_SEPARATOR) { return -1; } else { /* File is in the right directory */