Skip to content

Commit

Permalink
Missing tabs.
Browse files Browse the repository at this point in the history
  • Loading branch information
elinw committed Dec 19, 2011
1 parent 542800d commit 5007b89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/suite/joomla/form/JFormTest.php
Expand Up @@ -383,13 +383,13 @@ public function testFilterField()

$this->assertThat(
$form->filterField($form->findField('url'), 'http://example.com'),
$this->equalTo('http://example.com'),
$this->equalTo('http://example.com'),
'Line:'.__LINE__.' A field with a valid protocol should return as is.'
);

$this->assertThat(
$form->filterField($form->findField('url'), 'http://<script>alert();</script> <p>Some text.</p>'),
$this->equalTo('http://alert(); Some text.'),
$this->equalTo('http://alert(); Some text.'),
'Line:'.__LINE__.' A "url" with scripts should be should be filtered.'
);

Expand Down

0 comments on commit 5007b89

Please sign in to comment.