Page MenuHomePhorge

D25587.1737505571.diff
No OneTemporary

D25587.1737505571.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
Jan 22 2025, 00:26 (4 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1133213
Default Alt Text
D25587.1737505571.diff (1 KB)

Event Timeline