]> granicus.if.org Git - php/commit
Fix open_basedir check for glob:// opendir wrapper
authorSara Golemon <pollita@php.net>
Mon, 9 Jan 2017 19:02:50 +0000 (11:02 -0800)
committerSara Golemon <pollita@php.net>
Mon, 9 Jan 2017 19:02:50 +0000 (11:02 -0800)
commit7e49e8e7970b423968de7a53ea9a0796f4634276
tree3989f935caa391757695cc444672ce9252ea49b8
parentdb890956ecc11c090716a536b00a07f2499fa73a
Fix open_basedir check for glob:// opendir wrapper

php_check_open_basedir() expects a local filesystem path,
but we're handing it a `glob://...` URI instead.

Move the check to after the path trim so that we're checking
a meaningful pathspec.
ext/standard/tests/streams/glob-wrapper.phpt [new file with mode: 0644]
main/streams/glob_wrapper.c