Page MenuHomePhorge

D25587.1734702926.diff
No OneTemporary

D25587.1734702926.diff

diff --git a/src/applications/auth/management/PhabricatorAuthManagementCachePKCS8Workflow.php b/src/applications/auth/management/PhabricatorAuthManagementCachePKCS8Workflow.php
--- a/src/applications/auth/management/PhabricatorAuthManagementCachePKCS8Workflow.php
+++ b/src/applications/auth/management/PhabricatorAuthManagementCachePKCS8Workflow.php
@@ -32,7 +32,7 @@
$console = PhutilConsole::getConsole();
$public_keyfile = $args->getArg('public');
- if (!strlen($public_keyfile)) {
+ if (!phutil_nonempty_string($public_keyfile)) {
throw new PhutilArgumentUsageException(
pht(
'You must specify the path to a public keyfile with %s.',
@@ -49,7 +49,7 @@
$public_key = Filesystem::readFile($public_keyfile);
$pkcs8_keyfile = $args->getArg('pkcs8');
- if (!strlen($pkcs8_keyfile)) {
+ if (!phutil_nonempty_string($pkcs8_keyfile)) {
throw new PhutilArgumentUsageException(
pht(
'You must specify the path to a pkcs8 keyfile with %s.',

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 13:55 (21 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1018693
Default Alt Text
D25587.1734702926.diff (1 KB)

Event Timeline