Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2694352
D25216.1734779341.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
824 B
Referenced Files
None
Subscribers
None
D25216.1734779341.diff
View Options
diff --git a/src/applications/auth/controller/config/PhabricatorAuthEditController.php b/src/applications/auth/controller/config/PhabricatorAuthEditController.php
--- a/src/applications/auth/controller/config/PhabricatorAuthEditController.php
+++ b/src/applications/auth/controller/config/PhabricatorAuthEditController.php
@@ -99,10 +99,10 @@
if (!$errors) {
if ($is_new) {
- if (!strlen($config->getProviderType())) {
+ if (!phutil_nonempty_string($config->getProviderType())) {
$config->setProviderType($provider->getProviderType());
}
- if (!strlen($config->getProviderDomain())) {
+ if (!phutil_nonempty_string($config->getProviderDomain())) {
$config->setProviderDomain($provider->getProviderDomain());
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 11:09 (17 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1022417
Default Alt Text
D25216.1734779341.diff (824 B)
Attached To
Mode
D25216: Fix PHP 8.1 "strlen(null)" exceptions setting up Username/Password Authentication Provider
Attached
Detach File
Event Timeline
Log In to Comment