Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2653725
D25383.1732566350.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
978 B
Referenced Files
None
Subscribers
None
D25383.1732566350.diff
View Options
diff --git a/src/workflow/ArcanistWorkflow.php b/src/workflow/ArcanistWorkflow.php
--- a/src/workflow/ArcanistWorkflow.php
+++ b/src/workflow/ArcanistWorkflow.php
@@ -479,8 +479,8 @@
// If we have `token`, this server supports the simpler, new-style
// token-based authentication. Use that instead of all the certificate
// stuff.
- $token = idx($credentials, 'token', '');
- if (strlen($token)) {
+ $token = idx($credentials, 'token');
+ if (phutil_nonempty_string($token)) {
$conduit = $this->getConduit();
$conduit->setConduitToken($token);
@@ -2244,8 +2244,8 @@
protected function getModernUnitDictionary(array $map) {
$map = $this->getModernCommonDictionary($map);
- $details = idx($map, 'userData', '');
- if (strlen($details)) {
+ $details = idx($map, 'userData');
+ if (phutil_nonempty_string($details)) {
$map['details'] = (string)$details;
}
unset($map['userData']);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 20:25 (21 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
992909
Default Alt Text
D25383.1732566350.diff (978 B)
Attached To
Mode
D25383: Fix a PHP 8.1/8.2 deprecated use of strlen deprecated call with a NULL argument
Attached
Detach File
Event Timeline
Log In to Comment