Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14022936
D21861.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
862 B
Referenced Files
None
Subscribers
None
D21861.diff
View Options
diff --git a/externals/pear-figlet/Text/Figlet.php b/externals/pear-figlet/Text/Figlet.php
--- a/externals/pear-figlet/Text/Figlet.php
+++ b/externals/pear-figlet/Text/Figlet.php
@@ -141,13 +141,15 @@
/* ZIPed font */
if (fread($fp, 2) == 'PK') {
fclose($fp);
+
$zip = new ZipArchive();
$open_result = $zip->open($filename, ZipArchive::RDONLY);
if ($open_result !== true) {
return self::raiseError('Cannot open figlet font file ' .
$filename . ', got error: ' . $open_result, 2);
}
- $name = zip->getNameIndex(0);
+
+ $name = $zip->getNameIndex(0);
$zip->close();
if (!($fp = fopen('zip://' . realpath($filename) . '#' . $name, 'rb'))) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 7, 9:05 PM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6742519
Default Alt Text
D21861.diff (862 B)
Attached To
Mode
D21861: Fix support for pk-zip compressed figlet font files
Attached
Detach File
Event Timeline
Log In to Comment