Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2868389
D25153.1736663612.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
1 KB
Referenced Files
None
Subscribers
None
D25153.1736663612.diff
View Options
diff --git a/src/view/phui/PHUITagView.php b/src/view/phui/PHUITagView.php
--- a/src/view/phui/PHUITagView.php
+++ b/src/view/phui/PHUITagView.php
@@ -100,7 +100,24 @@
return $this;
}
+ /**
+ * Set the href attribute
+ *
+ * @param string|null $href
+ * @return self
+ */
public function setHref($href) {
+
+ // We have not a very clear idea about what this method should receive
+ // We suspect that PhutilURI should be allowed... but let's log everything!
+ // https://we.phorge.it/T15316
+ if (is_object($href)) {
+ phlog(sprintf(
+ 'Received unexpected type for href: %s. '.
+ 'Please paste this log as comment in https://we.phorge.it/T15316',
+ get_class($href)));
+ }
+
$this->href = $href;
return $this;
}
@@ -126,7 +143,7 @@
}
protected function getTagName() {
- return strlen($this->href) ? 'a' : 'span';
+ return phutil_nonempty_stringlike($this->href) ? 'a' : 'span';
}
public function setContextObject($context_object) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 12, 06:33 (5 d, 16 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1108707
Default Alt Text
D25153.1736663612.diff (1 KB)
Attached To
Mode
D25153: Fix PHP 8.1 "strlen(null)" exception which blocks rendering the Projects page (and log alien values)
Attached
Detach File
Event Timeline
Log In to Comment