Skip to content
Permalink
Browse files

Widened the set of allowable emojis.

refs #8368
  • Loading branch information...
Anton Nguyen
Anton Nguyen committed Oct 7, 2017
1 parent ccdbbe1 commit d09c6bd404fe3bd5192a25bf2752e233d2154079
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/Validation/Validation.php
  2. +1 −1 tests/TestCase/Validation/ValidationTest.php
@@ -909,7 +909,7 @@ public static function url($check, $strict = false)
{
static::_populateIp();
$emoji = '\x{1F300}-\x{1F6FF}';
$emoji = '\x{1F190}-\x{1F9EF}';
$alpha = '0-9(\p{L}\p{N}' . $emoji;
$hex = '(%[0-9a-f]{2})';
$subDelimiters = preg_quote('/!"$&\'()*+,-.@_:;=~[]', '/');
@@ -2181,7 +2181,7 @@ public function testUrl()
$this->assertTrue(Validation::url('http://www.electrohome.ro/images/239537750-284232-215_300[1].jpg'));
$this->assertTrue(Validation::url('http://www.eräume.foo'));
$this->assertTrue(Validation::url('http://äüö.eräume.foo'));
$this->assertTrue(Validation::url('http://www.domain.com/👹'), 'utf8Extended path failed');
$this->assertTrue(Validation::url('http://www.domain.com/👹/🧀'), 'utf8Extended path failed');
$this->assertTrue(Validation::url('http://cakephp.org:80'));
$this->assertTrue(Validation::url('http://cakephp.org:443'));

0 comments on commit d09c6bd

Please sign in to comment.
You can’t perform that action at this time.