sources/Subs.php 1 location
|
@@ 1555-1558 (lines=4) @@
|
| 1552 |
|
$num = $matches[2][0] === 'x' ? hexdec(substr($matches[2], 1)) : (int) $matches[2]; |
| 1553 |
|
|
| 1554 |
|
// We don't allow control characters, characters out of range, byte markers, etc |
| 1555 |
|
if ($num < 0x20 || $num > 0x10FFFF || ($num >= 0xD800 && $num <= 0xDFFF) || $num == 0x202D || $num == 0x202E) |
| 1556 |
|
return ''; |
| 1557 |
|
else |
| 1558 |
|
return '&#' . $num . ';'; |
| 1559 |
|
} |
| 1560 |
|
|
| 1561 |
|
/** |
sources/subs/Util.class.php 1 location
|
@@ 32-35 (lines=4) @@
|
| 29 |
|
$num = $string[0] === 'x' ? hexdec(substr($string, 1)) : (int) $string; |
| 30 |
|
|
| 31 |
|
// We don't allow control characters, characters out of range, byte markers, etc |
| 32 |
|
if ($num < 0x20 || $num > 0x10FFFF || ($num >= 0xD800 && $num <= 0xDFFF) || $num == 0x202D || $num == 0x202E) |
| 33 |
|
return ''; |
| 34 |
|
else |
| 35 |
|
return '&#' . $num . ';'; |
| 36 |
|
} |
| 37 |
|
|
| 38 |
|
/** |