Page MenuHomePhorge

D25514.1734632010.diff
No OneTemporary

D25514.1734632010.diff

diff --git a/src/parser/ArcanistDiffParser.php b/src/parser/ArcanistDiffParser.php
--- a/src/parser/ArcanistDiffParser.php
+++ b/src/parser/ArcanistDiffParser.php
@@ -187,6 +187,11 @@
}
public function parseDiff($diff) {
+ // Remove leading UTF-8 Byte Order Mark (BOM)
+ if (substr($diff, 0, 3) == pack('CCC', 0xEF, 0xBB, 0xBF)) {
+ $diff = substr($diff, 3);
+ }
+
if (!strlen(trim($diff))) {
throw new Exception(pht("Can't parse an empty diff!"));
}

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 19, 18:13 (19 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1015330
Default Alt Text
D25514.1734632010.diff (491 B)

Event Timeline