Page MenuHomePhabricator

D21798.id.diff
No OneTemporary

D21798.id.diff

diff --git a/src/parser/PhutilURI.php b/src/parser/PhutilURI.php
--- a/src/parser/PhutilURI.php
+++ b/src/parser/PhutilURI.php
@@ -154,9 +154,9 @@
$user = $this->user;
$pass = $this->pass;
- if (strlen($user) && strlen($pass)) {
+ if (phutil_nonempty_string($user) && phutil_nonempty_string($pass)) {
$auth = rawurlencode($user).':'.rawurlencode($pass).'@';
- } else if (strlen($user)) {
+ } else if (phutil_nonempty_string($user)) {
$auth = rawurlencode($user).'@';
} else {
$auth = null;

File Metadata

Mime Type
text/plain
Expires
Fri, Oct 18, 8:26 AM (1 w, 19 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6725860
Default Alt Text
D21798.id.diff (541 B)

Event Timeline