Page MenuHomePhorge

D25801.1734621603.diff
No OneTemporary

D25801.1734621603.diff

diff --git a/src/parser/xhpast/api/XHPASTNode.php b/src/parser/xhpast/api/XHPASTNode.php
--- a/src/parser/xhpast/api/XHPASTNode.php
+++ b/src/parser/xhpast/api/XHPASTNode.php
@@ -235,7 +235,7 @@
switch ($c) {
case 'x':
$u = isset($value[$ii + 1]) ? $value[$ii + 1] : null;
- if (!preg_match('/^[a-f0-9]/i', $u)) {
+ if ($u === null || !preg_match('/^[a-f0-9]/i', $u)) {
// PHP treats \x followed by anything which is not a hex digit
// as a literal \x.
$out .= '\\\\'.$c;

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 19, 15:20 (4 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1015128
Default Alt Text
D25801.1734621603.diff (573 B)

Event Timeline