Skip to content

Commit

Permalink
Fix failing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Feb 14, 2012
1 parent 76711c9 commit 25ee90a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Test/Case/View/HelperTest.php
Expand Up @@ -531,7 +531,7 @@ public function testUrlConversion() {
$this->assertEquals($result, '/controller/action/1?one=1&two=2');

$result = $this->Helper->url(array('controller' => 'posts', 'action' => 'index', 'page' => '1" onclick="alert(\'XSS\');"'));
$this->assertEquals($result, "/posts/index/page:1" onclick="alert('XSS');"");
$this->assertEquals($result, "/posts/index/page:1%22%20onclick%3D%22alert%28%27XSS%27%29%3B%22");

$result = $this->Helper->url('/controller/action/1/param:this+one+more');
$this->assertEquals($result, '/controller/action/1/param:this+one+more');
Expand All @@ -545,7 +545,7 @@ public function testUrlConversion() {
$result = $this->Helper->url(array(
'controller' => 'posts', 'action' => 'index', 'param' => '%7Baround%20here%7D%5Bthings%5D%5Bare%5D%24%24'
));
$this->assertEquals($result, "/posts/index/param:%7Baround%20here%7D%5Bthings%5D%5Bare%5D%24%24");
$this->assertEquals($result, "/posts/index/param:%257Baround%2520here%257D%255Bthings%255D%255Bare%255D%2524%2524");

$result = $this->Helper->url(array(
'controller' => 'posts', 'action' => 'index', 'page' => '1',
Expand Down

0 comments on commit 25ee90a

Please sign in to comment.