Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2694255
D25248.1734775563.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
576 B
Referenced Files
None
Subscribers
None
D25248.1734775563.diff
View Options
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 (($raw_query !== null) && preg_match('/^[hH]\d+\z/', $raw_query)) {
$id = trim($raw_query, 'hH');
$id = (int)$id;
$query->withIDs(array($id));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 10:06 (17 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1023005
Default Alt Text
D25248.1734775563.diff (576 B)
Attached To
Mode
D25248: Fix PHP 8.1 "preg_match(null)" exception which blocks rendering the "Browse Herald Rules" dialog
Attached
Detach File
Event Timeline
Log In to Comment