Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F91936
D7815.diff
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
742 B
Referenced Files
None
Subscribers
None
D7815.diff
View Options
diff --git a/src/infrastructure/markup/interpreter/PhabricatorRemarkupBlockInterpreterFiglet.php b/src/infrastructure/markup/interpreter/PhabricatorRemarkupBlockInterpreterFiglet.php
--- a/src/infrastructure/markup/interpreter/PhabricatorRemarkupBlockInterpreterFiglet.php
+++ b/src/infrastructure/markup/interpreter/PhabricatorRemarkupBlockInterpreterFiglet.php
@@ -13,7 +13,9 @@
pht('Unable to locate the `figlet` binary. Install figlet.'));
}
- $future = id(new ExecFuture('figlet'))
+ $font = idx($argv, 'font', 'standard');
+ $safe_font = preg_replace('/[^0-9a-zA-Z-_.]/', '', $font);
+ $future = id(new ExecFuture('figlet -f %s', $safe_font))
->setTimeout(15)
->write(trim($content, "\n"));
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/lf/xl/p7nkmhufx2vzd7dz
Default Alt Text
D7815.diff (742 B)
Attached To
Mode
D7815: Enable figlet to render text using custom fonts
Attached
Detach File
Event Timeline
Log In to Comment