Page MenuHomePhorge

D25638.1734722714.diff
No OneTemporary

D25638.1734722714.diff

diff --git a/src/applications/files/document/render/PhabricatorDocumentRenderingEngine.php b/src/applications/files/document/render/PhabricatorDocumentRenderingEngine.php
--- a/src/applications/files/document/render/PhabricatorDocumentRenderingEngine.php
+++ b/src/applications/files/document/render/PhabricatorDocumentRenderingEngine.php
@@ -208,12 +208,12 @@
$this->activeEngine = $engine;
$encode_setting = $request->getStr('encode');
- if (strlen($encode_setting)) {
+ if (phutil_nonempty_string($encode_setting)) {
$engine->setEncodingConfiguration($encode_setting);
}
$highlight_setting = $request->getStr('highlight');
- if (strlen($highlight_setting)) {
+ if (phutil_nonempty_string($highlight_setting)) {
$engine->setHighlightingConfiguration($highlight_setting);
}

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 19:25 (15 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1019040
Default Alt Text
D25638.1734722714.diff (833 B)

Event Timeline