Browse Source

- MFB:PECL Bug #8676, addFile was not updated and still used VCWD_REALPATH,

it now uses expand_filepath
migration/RELEASE_1_0_0
Pierre Joye 20 years ago
parent
commit
8b87c6ba8e
  1. 4
      ext/zip/php_zip.c

4
ext/zip/php_zip.c

@ -971,10 +971,10 @@ ZIPARCHIVE_METHOD(addFile)
entry_name_len = filename_len;
}
if (!VCWD_REALPATH(filename, resolved_path)) {
if(!expand_filepath(filename, resolved_path TSRMLS_CC)) {
RETURN_FALSE;
}
zs = zip_source_file(intern, resolved_path, 0, 0);
if (!zs) {
RETURN_FALSE;

Loading…
Cancel
Save