php-src/ext/zip
Christoph M. Becker e0c0de003b
Fix #77978: Dirname ending in colon unzips to wrong dir
When making the relative path, we must not stop on a `:\` sequence in
the middle of the filename.  This is only significant on Windows as it
may indicate an absolute filename, but this is already checked at the
beginning of the function.

Note that the bug and this patch affects all systems.  However, on
Windows the file is no longer extracted at all, since Windows NTSF does
not allow filenames containing colons.

Closes GH-7528.
2021-10-04 12:55:34 +02:00
..
examples Apply tidy formatting 2020-02-03 13:41:31 +01:00
tests Fix #77978: Dirname ending in colon unzips to wrong dir 2021-10-04 12:55:34 +02:00
config.m4 check for broken libzip versions 2020-06-18 17:13:01 +02:00
config.w32 Enable support for LIBZIP_VERSION 2020-01-28 13:34:07 +01:00
CREDITS Sync ext/zip with pecl/zip version 1.3.2 2013-11-04 13:23:36 +01:00
php_zip.c Fix #77978: Dirname ending in colon unzips to wrong dir 2021-10-04 12:55:34 +02:00
php_zip.h - bump zip extension version to 1.15.6 2020-01-27 16:47:28 +01:00
zip_stream.c Report errors from stream read and write operations 2019-07-22 17:17:28 +02:00