projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website]
/
web
/
core
/
lib
/
Drupal
/
Component
/
Utility
/
Color.php
diff --git
a/web/core/lib/Drupal/Component/Utility/Color.php
b/web/core/lib/Drupal/Component/Utility/Color.php
index e3cb56bc92691be5ab6d7426bd439c52e265ceb9..ff06f39f413270321e943fafad8831fb18fe0da0 100644
(file)
--- a/
web/core/lib/Drupal/Component/Utility/Color.php
+++ b/
web/core/lib/Drupal/Component/Utility/Color.php
@@
-23,7
+23,7
@@
class Color {
// Hash prefix is optional.
$hex = ltrim($hex, '#');
// Must be either RGB or RRGGBB.
// Hash prefix is optional.
$hex = ltrim($hex, '#');
// Must be either RGB or RRGGBB.
- $length =
Unicode::
strlen($hex);
+ $length =
mb_
strlen($hex);
$valid = $valid && ($length === 3 || $length === 6);
// Must be a valid hex value.
$valid = $valid && ctype_xdigit($hex);
$valid = $valid && ($length === 3 || $length === 6);
// Must be a valid hex value.
$valid = $valid && ctype_xdigit($hex);