Page MenuHomePhorge

D25801.1737261600.diff
No OneTemporary

D25801.1737261600.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
@@ -240,7 +240,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
Sun, Jan 19, 04:40 (16 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1112793
Default Alt Text
D25801.1737261600.diff (573 B)

Event Timeline