Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2905543
D25157.1737346299.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
D25157.1737346299.diff
View Options
diff --git a/src/view/phui/PHUIObjectItemView.php b/src/view/phui/PHUIObjectItemView.php
--- a/src/view/phui/PHUIObjectItemView.php
+++ b/src/view/phui/PHUIObjectItemView.php
@@ -83,11 +83,33 @@
return $this->object;
}
+ /**
+ * Set the href attribute
+ *
+ * @param $href string|PhutilURI|null
+ */
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;
}
+ /**
+ * Get the href attribute
+ *
+ * @see PHUIObjectItemView::setHref()
+ * @return string|PhutilURI|null
+ */
public function getHref() {
return $this->href;
}
@@ -659,8 +681,8 @@
$this->getImageIcon());
}
- if ($image && (phutil_nonempty_string($this->href) ||
- phutil_nonempty_string($this->imageHref))) {
+ if ($image && (phutil_nonempty_stringlike($this->href) ||
+ phutil_nonempty_stringlike($this->imageHref))) {
$image_href = ($this->imageHref) ? $this->imageHref : $this->href;
$image = phutil_tag(
'a',
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 20, 04:11 (12 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1135644
Default Alt Text
D25157.1737346299.diff (1 KB)
Attached To
Mode
D25157: Fix regression in PHUIObjectItemView.php:662: allow PhutilURI and other stringlike
Attached
Detach File
Event Timeline
Log In to Comment