Page MenuHomePhabricator

D21861.diff
No OneTemporary

D21861.diff

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

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)

Event Timeline