diff options
author | Ahmed Abdou <email@ahmed.ro> | 2019-01-29 08:59:45 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-02-11 15:50:27 +0100 |
commit | ec28d4c247ef3c7ab9af41ff6e26b802694492b2 (patch) | |
tree | 78b22541c8ab70c598a6d5509ead5e41ee0b9c38 /main/streams/glob_wrapper.c | |
parent | fe4d7248cc09cf4d4f7b289e6db8299e8d7ac6d2 (diff) | |
download | php-git-ec28d4c247ef3c7ab9af41ff6e26b802694492b2.tar.gz |
Fix bug #51068 (glob:// do not support current path relative)
Fix DirectoryIterator glob://* current path relative queries
Diffstat (limited to 'main/streams/glob_wrapper.c')
-rw-r--r-- | main/streams/glob_wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/streams/glob_wrapper.c b/main/streams/glob_wrapper.c index 903119705b..b10318fef2 100644 --- a/main/streams/glob_wrapper.c +++ b/main/streams/glob_wrapper.c @@ -128,7 +128,7 @@ static void php_glob_stream_path_split(glob_s_t *pglob, const char *path, int ge if (pglob->path) { efree(pglob->path); } - if (path != gpath) { + if ((path - gpath) > 1) { path--; } pglob->path_len = path - gpath; |