Page MenuHomePhorge

D25499.1734748952.diff
No OneTemporary

D25499.1734748952.diff

diff --git a/src/applications/files/builtin/PhabricatorFilesComposeIconBuiltinFile.php b/src/applications/files/builtin/PhabricatorFilesComposeIconBuiltinFile.php
--- a/src/applications/files/builtin/PhabricatorFilesComposeIconBuiltinFile.php
+++ b/src/applications/files/builtin/PhabricatorFilesComposeIconBuiltinFile.php
@@ -51,12 +51,14 @@
$map = array();
$list = Filesystem::listDirectory($root, $include_hidden = false);
foreach ($list as $file) {
- $short = preg_replace('/\.png$/', '', $file);
-
- $map[$short] = array(
- 'path' => $root.$file,
- 'quip' => idx($quips, $short, $short),
- );
+ $count = 0;
+ $short = preg_replace('/\.png$/', '', $file, -1, $count);
+ if ($count === 1) {
+ $map[$short] = array(
+ 'path' => $root.$file,
+ 'quip' => idx($quips, $short, $short),
+ );
+ }
}
return $map;

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 02:42 (18 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1022281
Default Alt Text
D25499.1734748952.diff (915 B)

Event Timeline