#5685: [Test] Validation of URLs with round brackets fails
---------------------------+------------------------------------------------
    Reporter:  dho         |          Type:  Bug       
      Status:  new         |      Priority:  Low       
   Milestone:  1.2.x.x     |     Component:  Validation
     Version:  RC3         |      Severity:  Normal    
    Keywords:              |   Php_version:  n/a       
Cake_version:  1.2.0.7801  |  
---------------------------+------------------------------------------------
 Wikipedia uses for some urls round brackets, and as the following test
 shows, the validation of such urls fails:
 {{{
 Index:
 /home/dho/projects/cake_1.2.x.x/cake/tests/cases/libs/validation.test.php
 ===================================================================
 ---
 /home/dho/projects/cake_1.2.x.x/cake/tests/cases/libs/validation.test.php
 (revision 7802)
 +++
 /home/dho/projects/cake_1.2.x.x/cake/tests/cases/libs/validation.test.php
 (working copy)
 @@ -1646,6 +1646,7 @@
 
$this->assertTrue(Validation::url('http://123456789112345678921234567893123456789412345678951234567896123.com'));
                 $this->assertFalse(Validation::url('http://this-domain-is-
 too-loooooong-by-icann-rules-maximum-length-is-63.com'));
 
$this->assertTrue(Validation::url('http://www.domain.com/blogs/index.php?blog=6&tempskin=_rss2'));
 +
 
$this->assertTrue(Validation::url('http://en.wikipedia.org/wiki/Architectural_pattern_(computer_science)'));
         }
  /**
   * testInList method
 }}}

-- 
Ticket URL: <https://trac.cakephp.org/ticket/5685>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

  • [CakePHP : The Rapid Dev... CakePHP : The Rapid Development Framework for PHP

Reply via email to