Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2697714
D25263.1734957064.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
692 B
Referenced Files
None
Subscribers
None
D25263.1734957064.diff
View Options
diff --git a/src/applications/differential/editor/DifferentialTransactionEditor.php b/src/applications/differential/editor/DifferentialTransactionEditor.php
--- a/src/applications/differential/editor/DifferentialTransactionEditor.php
+++ b/src/applications/differential/editor/DifferentialTransactionEditor.php
@@ -218,7 +218,7 @@
// No "$", to allow for branches like T123_demo.
$match = null;
- if (preg_match('/^T(\d+)/i', $branch, $match)) {
+ if ($branch !== null && preg_match('/^T(\d+)/i', $branch, $match)) {
$task_id = $match[1];
$tasks = id(new ManiphestTaskQuery())
->setViewer($this->getActor())
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 12:31 (17 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1026955
Default Alt Text
D25263.1734957064.diff (692 B)
Attached To
Mode
D25263: Fix PHP 8.1 "preg_match(null)" exception on "Create Revision" page in Differential when not entering data
Attached
Detach File
Event Timeline
Log In to Comment