Page MenuHomePhorge

D25587.1735142839.diff
No OneTemporary

D25587.1735142839.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
Wed, Dec 25, 16:07 (9 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1031034
Default Alt Text
D25587.1735142839.diff (1 KB)

Event Timeline