Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14446968
D21822.id52005.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
690 B
Referenced Files
None
Subscribers
None
D21822.id52005.diff
View Options
diff --git a/src/parser/PhutilURI.php b/src/parser/PhutilURI.php
--- a/src/parser/PhutilURI.php
+++ b/src/parser/PhutilURI.php
@@ -194,7 +194,7 @@
$query = null;
}
- if (strlen($this->getFragment())) {
+ if (phutil_nonempty_string($this->getFragment())) {
$fragment = '#'.$this->getFragment();
} else {
$fragment = null;
@@ -433,7 +433,7 @@
if ($this->isGitURI()) {
// Git URIs use relative paths which do not need to begin with "/".
} else {
- if ($this->domain && strlen($path) && $path[0] !== '/') {
+ if ($this->domain && phutil_nonempty_string($path) && $path[0] !== '/') {
$path = '/'.$path;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 27, 1:45 PM (9 m, 56 s)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6915776
Default Alt Text
D21822.id52005.diff (690 B)
Attached To
Mode
D21822: Straggling fixes for PhutilURI under PHP 8.1
Attached
Detach File
Event Timeline
Log In to Comment