Page MenuHomePhorge

D25248.1737850744.diff
No OneTemporary

D25248.1737850744.diff

diff --git a/src/applications/herald/typeahead/HeraldRuleDatasource.php b/src/applications/herald/typeahead/HeraldRuleDatasource.php
--- a/src/applications/herald/typeahead/HeraldRuleDatasource.php
+++ b/src/applications/herald/typeahead/HeraldRuleDatasource.php
@@ -22,7 +22,7 @@
$query = id(new HeraldRuleQuery())
->setViewer($viewer);
- if (preg_match('/^[hH]\d+\z/', $raw_query)) {
+ if (phutil_nonempty_string($raw_query) && preg_match('/^[hH]\d+\z/', $raw_query)) {
$id = trim($raw_query, 'hH');
$id = (int)$id;
$query->withIDs(array($id));

File Metadata

Mime Type
text/plain
Expires
Sun, Jan 26, 00:19 (6 d, 22 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1149209
Default Alt Text
D25248.1737850744.diff (589 B)

Event Timeline