Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2644284
D25183.1732294577.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
687 B
Referenced Files
None
Subscribers
None
D25183.1732294577.diff
View Options
diff --git a/src/parser/ArcanistDiffParser.php b/src/parser/ArcanistDiffParser.php
--- a/src/parser/ArcanistDiffParser.php
+++ b/src/parser/ArcanistDiffParser.php
@@ -263,7 +263,9 @@
// searching for "diff -r" or "diff --git" in the text.
$this->saveLine();
$line = $this->nextLineThatLooksLikeDiffStart();
- if (!$this->tryMatchHeader($patterns, $line, $match)) {
+ if (!phutil_nonempty_string($line)) {
+ $failed_parse = true;
+ } else if (!$this->tryMatchHeader($patterns, $line, $match)) {
// Restore line before guessing to display correct error.
$this->restoreLine();
$failed_parse = true;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 22, 16:56 (12 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
989250
Default Alt Text
D25183.1732294577.diff (687 B)
Attached To
Mode
D25183: Fix PHP 8.1 "preg_match()" exception when pasting malformed Raw Diff into "Create Diff"
Attached
Detach File
Event Timeline
Log In to Comment