Created
December 21, 2013 14:15
-
-
Save benallfree/8069845 to your computer and use it in GitHub Desktop.
Zip files which do not contain a bare parent directory entry were not being detected correctly.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: modify-installer.php | |
=================================================================== | |
--- modify-installer.php (revision 826618) | |
+++ modify-installer.php (working copy) | |
@@ -134,7 +134,7 @@ | |
$contents = $archive->listContent(); | |
foreach ( (array) $contents as $content ) { | |
- if ( preg_match( '|^([^/]+)/$|', $content['filename'], $matches ) ) { | |
+ if ( preg_match( '|^([^/]+)/|', $content['filename'], $matches ) ) { | |
$directory = $matches[1]; | |
break; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment